Packages

trait KeyValueStoreMetadata[T] extends TableBasedMetadata[T]

Table-based metadata implementation for key-value stores. As with TableBasedMetadata, the metadata is persisted in a database table. The underlying table will be lazily created when required. Metadata values are cached with a configurable timeout to save repeated database reads.

T

type param

Linear Supertypes
TableBasedMetadata[T], LazyLogging, GeoMesaMetadata[T], Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KeyValueStoreMetadata
  2. TableBasedMetadata
  3. LazyLogging
  4. GeoMesaMetadata
  5. Closeable
  6. AutoCloseable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def close(): Unit
    Definition Classes
    Closeable → AutoCloseable
    Annotations
    @throws( classOf[java.io.IOException] )
  2. abstract def serializer: MetadataSerializer[T]

    Serializer

    Serializer

    Definition Classes
    TableBasedMetadata

Concrete Value Members

  1. def backup(typeName: String): Unit

    Create a back up of this metadata

    Create a back up of this metadata

    typeName

    simple feature type name

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  2. def delete(typeName: String): Unit

    Deletes all values associated with a given feature type

    Deletes all values associated with a given feature type

    typeName

    simple feature type name

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  3. def encodeRow(typeName: String, key: String): Array[Byte]
  4. def ensureTableExists(): Unit
    Definition Classes
    TableBasedMetadata
  5. def getFeatureTypes: Array[String]

    Returns existing simple feature types

    Returns existing simple feature types

    returns

    simple feature type names

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  6. def insert(typeName: String, kvPairs: Map[String, T]): Unit

    Insert multiple values at once - may be more efficient than single inserts

    Insert multiple values at once - may be more efficient than single inserts

    typeName

    simple feature type name

    kvPairs

    key/values

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  7. def insert(typeName: String, key: String, value: T): Unit

    Insert a value - any existing value under the given key will be overwritten

    Insert a value - any existing value under the given key will be overwritten

    typeName

    simple feature type name

    key

    key

    value

    value

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  8. def invalidateCache(typeName: String, key: String): Unit

    Invalidates any cached value for the given key

    Invalidates any cached value for the given key

    typeName

    simple feature type name

    key

    key

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  9. def read(typeName: String, key: String, cache: Boolean): Option[T]

    Reads a value

    Reads a value

    typeName

    simple feature type name

    key

    key

    cache

    may return a cached value if true, otherwise may use a slower lookup

    returns

    value, if present

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  10. def readRequired(typeName: String, key: String): T

    Reads a value.

    Reads a value. Throws an exception if value is missing

    typeName

    simple feature type name

    key

    key

    returns

    value

    Definition Classes
    GeoMesaMetadata
  11. def remove(typeName: String, keys: Seq[String]): Unit

    Delete multiple keys at once - may be more efficient than single deletes

    Delete multiple keys at once - may be more efficient than single deletes

    typeName

    simple feature type name

    keys

    keys

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  12. def remove(typeName: String, key: String): Unit

    Delete a key

    Delete a key

    typeName

    simple feature type name

    key

    key

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  13. def resetCache(): Unit

    table cache should be cleared up when catalog is deleted in database

    table cache should be cleared up when catalog is deleted in database

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  14. def scan(typeName: String, prefix: String, cache: Boolean): Seq[(String, T)]

    Scan for keys starting with a given prefix

    Scan for keys starting with a given prefix

    typeName

    simple feature type name

    prefix

    key prefix

    cache

    may return a cached value if true, otherwise may use a slower lookup

    returns

    keys -> values

    Definition Classes
    TableBasedMetadataGeoMesaMetadata
  15. val typeNameSeparator: Char