trait GeoMesaMetadata[T] extends Closeable
GeoMesa Metadata/Catalog abstraction using key/value String pairs storing them on a per-typeName basis
- Alphabetic
- By Inheritance
- GeoMesaMetadata
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
backup(typeName: String): Unit
Create a back up of this metadata
Create a back up of this metadata
- typeName
simple feature type name
-
abstract
def
close(): Unit
- Definition Classes
- Closeable → AutoCloseable
- Annotations
- @throws( classOf[java.io.IOException] )
-
abstract
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
-
abstract
def
getFeatureTypes: Array[String]
Returns existing simple feature types
Returns existing simple feature types
- returns
simple feature type names
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
def
read(typeName: String, key: String, cache: Boolean = true): 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
-
abstract
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
-
abstract
def
remove(typeName: String, key: String): Unit
Delete a key
Delete a key
- typeName
simple feature type name
- key
key
-
abstract
def
resetCache(): Unit
table cache should be cleared up when catalog is deleted in database
-
abstract
def
scan(typeName: String, prefix: String, cache: Boolean = true): 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
Concrete Value Members
-
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