Packages

trait CatalogLight extends AnyRef

The interface to access basic catalog properties and perform the catalog operations that do not involve metadata or Spark.

Note

This a Java friendly wrapper of com.here.platform.data.processing.catalog.CatalogLight.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CatalogLight
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def abortCommit(token: CommitToken): Unit

    Aborts a commit being prepared.

    Aborts a commit being prepared.

    token

    The token identifying the commit to abort

  2. abstract def finishCommit(token: CommitToken, parts: List[CommitPart]): Unit

    Completes a multipart commit.

    Completes a multipart commit.

    token

    The token obtained when startCommit was called to start this commit.

    parts

    All the commit parts obtained from calls made to partialCommit as part of this commit.

  3. abstract def hrn: HRN

    The HRN (HERE Resource Name) of the catalog.

    The HRN (HERE Resource Name) of the catalog. It is a resource descriptor that provides a globally unique handle for a catalog in the sense of an instance.

  4. abstract def id: String

    The unique identifier for the catalog, that is added to every com.here.platform.data.processing.java.catalog.partition.Key returned by the query APIs and is used by the commit API for logging and statistics generation.

  5. abstract def queryConfiguration(): Configuration

    Queries the current configuration of the catalog.

    Queries the current configuration of the catalog.

    returns

    The current configuration of the catalog.

  6. abstract def queryDependencies(version: Version): List[Dependency]

    Queries the dependencies for a particular catalog version.

    Queries the dependencies for a particular catalog version.

    version

    The version of the catalog for which dependencies will be queried.

    returns

    The dependencies of the catalog version.

  7. abstract def queryLatestVersion(): BaseVersion

    Queries the latest version of the catalog.

    Queries the latest version of the catalog.

    returns

    The latest catalog version available in the Data API, or com.here.platform.data.processing.catalog.utils.EmptyCatalog otherwise.

  8. abstract def queryLayerVersions(version: Version): Map[String, Version]

    Queries the latest version for each of the catalog layers.

    Queries the latest version for each of the catalog layers. This is the version of the most recent event affecting that layer, either because a partition was changed and/or deleted in that version.

    For some layers, this version may be older than the catalog's overall version, particularly if those layers did not change, but other layers have changed.

    version

    The version for which the catalog's layers are queried.

    returns

    The latest version for each of the catalog's layers.

    Note

    In case a layer has never changed since catalog creation, 0 is returned.

  9. abstract def queryPartitionChangeHistory(version: Version, layer: String, partition: Name, direction: catalog.Catalog.ChangeHistoryDirection.Value): List[Change]

    Queries metadata history for the selected partition.

    Queries metadata history for the selected partition.

    This query is done directly in the Driver, and the metadata is returned. You can query up to 100 changes with one call.

    version

    The version from which to begin the change history search.

    layer

    The layer that contains the partition.

    partition

    The partition to query the change history for.

    direction

    Specifies the direction in which to lookup the history: forward or backward.

    returns

    A com.here.platform.data.processing.java.catalog.partition.Change object containing the partition size and checksum.

    Note

    This method is scheduled to be deprecated in a future release. Only supported by the Datastore1 implementation.

  10. abstract def querySinglePartitions(version: Version, layer: String, partitions: Set[Name]): Map[Key, Meta]

    Queries metadata for the selected partitions.

    Queries metadata for the selected partitions.

    This query is done directly in the Driver, and the metadata is returned. You can query up to 100 partitions with one call.

    version

    The version at which the catalog is queried for partitions.

    layer

    The layer that contains the partitions being queried.

    partitions

    The partition names that should be queried.

    returns

    The queried metadata, for partitions that have content in the catalog at the specified version. Partitions not present in the catalog at the specified version are not returned.

    Note

    This method is only intended to be used internally, by the library. When implementing your compiler, you are encouraged to use queryAll/queryChanges instead, as these methods are implemented in a distributed way.

  11. abstract def retriever: Retriever

    Exposes the Retriever for this catalog.

    Exposes the Retriever for this catalog. The returned object can be captured in Spark functions and transmitted to worker nodes.

  12. abstract def startCommit(baseVersion: BaseVersion, dependencies: List[Dependency]): CommitToken

    Starts a new multipart commit on top of an existing version or an empty catalog.

    Starts a new multipart commit on top of an existing version or an empty catalog.

    baseVersion

    The current version of the catalog in the Data API. This information is required to prevent race conditions if the version is changed elsewhere, in another process, while we are preparing data for the commit. If the catalog is empty, use com.here.platform.data.processing.catalog.utils.EmptyCatalog.

    dependencies

    The upstream dependencies for this commit.

    returns

    A new multipart commit token representing the commit in progress.

  13. abstract def tokenFromString(s: String): CommitToken

    Create a commit token for the catalog given its string representation.

  14. abstract def tokenToString(t: CommitToken): String

    Return the string representation of a commit token.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped