org.locationtech.geomesa.index.metadata
KeyValueStoreMetadata
Companion object KeyValueStoreMetadata
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
- Alphabetic
- By Inheritance
- KeyValueStoreMetadata
- TableBasedMetadata
- LazyLogging
- GeoMesaMetadata
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
close(): Unit
- Definition Classes
- Closeable → AutoCloseable
- Annotations
- @throws( classOf[java.io.IOException] )
-
abstract
def
serializer: MetadataSerializer[T]
Serializer
Serializer
- Definition Classes
- TableBasedMetadata
Concrete Value Members
-
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
- TableBasedMetadata → GeoMesaMetadata
-
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
- TableBasedMetadata → GeoMesaMetadata
- def encodeRow(typeName: String, key: String): Array[Byte]
-
def
ensureTableExists(): Unit
- Definition Classes
- TableBasedMetadata
-
def
getFeatureTypes: Array[String]
Returns existing simple feature types
Returns existing simple feature types
- returns
simple feature type names
- Definition Classes
- TableBasedMetadata → GeoMesaMetadata
-
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
- TableBasedMetadata → GeoMesaMetadata
-
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
- TableBasedMetadata → GeoMesaMetadata
-
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
- TableBasedMetadata → GeoMesaMetadata
-
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
- TableBasedMetadata → GeoMesaMetadata
-
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
-
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
- TableBasedMetadata → GeoMesaMetadata
-
def
remove(typeName: String, key: String): Unit
Delete a key
Delete a key
- typeName
simple feature type name
- key
key
- Definition Classes
- TableBasedMetadata → GeoMesaMetadata
-
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
- TableBasedMetadata → GeoMesaMetadata
-
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
- TableBasedMetadata → GeoMesaMetadata
- val typeNameSeparator: Char