Class/Object

io.xskipper.index.execution

MetadataProcessor

Related Docs: object MetadataProcessor | package execution

Permalink

class MetadataProcessor extends Logging with Serializable

A Helper class which collects the indexes and use a MetadataHandle to upload the metadata

Linear Supertypes
Serializable, Serializable, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetadataProcessor
  2. Serializable
  3. Serializable
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetadataProcessor(spark: SparkSession, uri: String, metadataHandle: MetadataHandle)

    Permalink

    spark

    org.apache.spark.sql.SparkSession instance for processing

    uri

    the URI of the dataset

    metadataHandle

    a MetadataHandle instance to be used for saving the metadata

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def analyzeAndUploadMetadata(format: String, options: Map[String, String], indexes: Seq[Index], fileIds: Seq[(String, String)], schema: Option[StructType], isRefresh: Boolean = false): Unit

    Permalink

    Collects the indexes and them to the metadatastore using the MetadataHandle

    Collects the indexes and them to the metadatastore using the MetadataHandle

    format

    the format to be used when reading each object

    options

    the options to be used when reading each object Note: all objects are assumed to have the same options and format.

    indexes

    a sequence of indexes that will be applied on the indexed dataset

    fileIds

    a sequence of (String, String) where the first string is the file name and the second is the fileID

    schema

    (optional) the expected schema (since we are reading object by object the schema can be provided according to the full dataframe)

    isRefresh

    indicates whether the operation is a refresh

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def collectNewFiles(files: Seq[FileStatus], isRefresh: Boolean): (Seq[(String, String)], Seq[String])

    Permalink

    Collects the list of files that needs to be indexed A file needs to be indexed if: 1.

    Collects the list of files that needs to be indexed A file needs to be indexed if: 1. It is a new file that was not indexed before 2. It is an indexed file which changed since it was indexed

    files

    The list of files the will be compared against the existing indexed files

    isRefresh

    indicates whether this is a refresh operation or not, in case this is not a refresh operation assuming no indexed files exits

    returns

    Sequence of (String, String) where the first string is the file name and the second is the fileID for all of new/modified files, Sequence of files to be removed from the metadatastore (since they were updated)

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  14. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  17. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def prepareForRefresh(indexes: Seq[Index]): Unit

    Permalink
  33. def removeMetadataForFiles(files: Seq[String]): Int

    Permalink

    Removes the metadata for a given list of files

    Removes the metadata for a given list of files

    files

    the list of files to remove metadata for

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. val tableIdentifier: String

    Permalink
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped