public abstract class AbstractDynamoDBStore extends java.lang.Object implements AwsStore
| Modifier and Type | Field and Description |
|---|---|
protected Client |
client |
protected boolean |
forceConsistentRead |
protected DynamoDBStoreManager |
manager |
protected java.lang.String |
storeName |
protected java.lang.String |
tableName |
| Constructor and Description |
|---|
AbstractDynamoDBStore(DynamoDBStoreManager manager,
java.lang.String prefix,
java.lang.String storeName) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireLock(com.thinkaurelius.titan.diskstorage.StaticBuffer key,
com.thinkaurelius.titan.diskstorage.StaticBuffer column,
com.thinkaurelius.titan.diskstorage.StaticBuffer expectedValue,
com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction txh) |
void |
close() |
void |
deleteStore()
Deletes the KCV store and underlying DynamoDB tables.
|
protected java.lang.String |
encodeForLog(com.thinkaurelius.titan.diskstorage.keycolumnvalue.KeySliceQuery query) |
protected java.lang.String |
encodeForLog(java.util.List<?> columns) |
protected java.lang.String |
encodeForLog(com.thinkaurelius.titan.diskstorage.keycolumnvalue.SliceQuery query) |
protected java.lang.String |
encodeKeyForLog(com.thinkaurelius.titan.diskstorage.StaticBuffer key) |
protected java.lang.String |
encodeKeyForLog(com.thinkaurelius.titan.diskstorage.StaticBuffer hashKey,
com.thinkaurelius.titan.diskstorage.StaticBuffer columnKey) |
void |
ensureStore()
Creates the KCV store and underlying DynamoDB tables.
|
java.lang.String |
getTableName()
Titan relies on static store names to be used, but we want the ability to
have multiple graphs in a single region, so prepend a configurable prefix to the
underlying table names of each graph and get the DynamoDB table name with this method
|
abstract CreateTableRequest |
getTableSchema()
Creates the schemata for the DynamoDB table or tables each store requires.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMutationWorkersprotected final DynamoDBStoreManager manager
protected final Client client
protected final java.lang.String storeName
protected final java.lang.String tableName
protected final boolean forceConsistentRead
public AbstractDynamoDBStore(DynamoDBStoreManager manager, java.lang.String prefix, java.lang.String storeName)
public abstract CreateTableRequest getTableSchema()
public final void ensureStore()
throws com.thinkaurelius.titan.diskstorage.BackendException
AwsStoreensureStore in interface AwsStorecom.thinkaurelius.titan.diskstorage.BackendException - if unable to ensure the underlying storepublic final void deleteStore()
throws com.thinkaurelius.titan.diskstorage.BackendException
AwsStoredeleteStore in interface AwsStorecom.thinkaurelius.titan.diskstorage.BackendExceptionpublic void acquireLock(com.thinkaurelius.titan.diskstorage.StaticBuffer key,
com.thinkaurelius.titan.diskstorage.StaticBuffer column,
com.thinkaurelius.titan.diskstorage.StaticBuffer expectedValue,
com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction txh)
throws com.thinkaurelius.titan.diskstorage.BackendException
acquireLock in interface com.thinkaurelius.titan.diskstorage.keycolumnvalue.KeyColumnValueStorecom.thinkaurelius.titan.diskstorage.BackendExceptionpublic void close()
throws com.thinkaurelius.titan.diskstorage.BackendException
close in interface com.thinkaurelius.titan.diskstorage.keycolumnvalue.KeyColumnValueStorecom.thinkaurelius.titan.diskstorage.BackendExceptionpublic java.lang.String getTableName()
AwsStoregetTableName in interface AwsStoreprotected java.lang.String encodeKeyForLog(com.thinkaurelius.titan.diskstorage.StaticBuffer key)
protected java.lang.String encodeKeyForLog(com.thinkaurelius.titan.diskstorage.StaticBuffer hashKey,
com.thinkaurelius.titan.diskstorage.StaticBuffer columnKey)
protected java.lang.String encodeForLog(java.util.List<?> columns)
protected java.lang.String encodeForLog(com.thinkaurelius.titan.diskstorage.keycolumnvalue.SliceQuery query)
protected java.lang.String encodeForLog(com.thinkaurelius.titan.diskstorage.keycolumnvalue.KeySliceQuery query)