Package com.gengoai.kv
Class KeyValueStoreConnection
- java.lang.Object
-
- com.gengoai.kv.KeyValueStoreConnection
-
- All Implemented Interfaces:
Specifiable
,Serializable
public final class KeyValueStoreConnection extends Object implements Specifiable, Serializable
The type Kv store spec.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyValueStoreConnection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V,T extends KeyValueStore<K,V>>
Tconnect()
Connect t.String
getSchema()
Gets the schema of this specifiable.static KeyValueStoreConnection
parse(String specification)
Parse kv store spec.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.gengoai.specification.Specifiable
toSpecification
-
-
-
-
Method Detail
-
parse
public static KeyValueStoreConnection parse(String specification)
Parse kv store spec.- Parameters:
specification
- the specification- Returns:
- the kv store spec
-
connect
public <K,V,T extends KeyValueStore<K,V>> T connect()
Connect t.- Type Parameters:
K
- the type parameterV
- the type parameterT
- the type parameter- Returns:
- the t
-
getSchema
public String getSchema()
Description copied from interface:Specifiable
Gets the schema of this specifiable. Will be used for validation when parsing the specification string.- Specified by:
getSchema
in interfaceSpecifiable
- Returns:
- the schema
-
-