| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG
Logger for
DynamoDBNativeStore. |
| Constructor and Description |
|---|
DynamoDBNativeStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createSchema() |
boolean |
delete(K key)
Deletes the object using key
|
long |
deleteByQuery(org.apache.gora.query.Query<K,T> query)
Deletes items using a specific query
|
void |
deleteSchema() |
org.apache.gora.query.Result<K,T> |
execute(org.apache.gora.query.Query<K,T> query)
Executes a query after building a DynamoDB specific query based on the
received one
|
void |
flush() |
T |
get(K key) |
T |
get(K key,
String[] fields) |
org.apache.gora.persistency.BeanFactory<K,T> |
getBeanFactory() |
List<org.apache.gora.query.PartitionQuery<K,T>> |
getPartitions(org.apache.gora.query.Query<K,T> arg0) |
String |
getSchemaName() |
void |
initialize(Class<K> keyClass,
Class<T> pPersistentClass,
Properties properties)
Initialize the data store by reading the credentials, setting the cloud
provider, setting the client's properties up, setting the end point and
reading the mapping file
|
K |
newKey()
Returns a new instance of the key object.
|
T |
newPersistent()
Returns a new persistent object
|
org.apache.gora.query.Query<K,T> |
newQuery()
Creates a new DynamoDBQuery
|
void |
put(K key,
T obj)
Puts an object identified by a key
|
boolean |
schemaExists() |
void |
setBeanFactory(org.apache.gora.persistency.BeanFactory<K,T> arg0) |
void |
setDynamoDBStoreHandler(DynamoDBStore<K,T> dynamoHandler)
Sets the handler to the main DynamoDB
|
equals, getConf, getKeyClass, getPersistentClass, getSchemaName, getWSProvider, readFields, setConf, setKeyClass, setPersistentClass, setWsProvider, truncateSchema, writepublic static final org.slf4j.Logger LOG
DynamoDBNativeStore.public long deleteByQuery(org.apache.gora.query.Query<K,T> query)
public org.apache.gora.query.Result<K,T> execute(org.apache.gora.query.Query<K,T> query)
public K newKey()
public T newPersistent()
public boolean delete(K key)
public void initialize(Class<K> keyClass, Class<T> pPersistentClass, Properties properties)
public void close()
public void flush()
public List<org.apache.gora.query.PartitionQuery<K,T>> getPartitions(org.apache.gora.query.Query<K,T> arg0) throws IOException
getPartitions in interface org.apache.gora.store.DataStore<K,T extends org.apache.gora.persistency.Persistent>IOExceptionpublic void createSchema()
public void setDynamoDBStoreHandler(DynamoDBStore<K,T> dynamoHandler)
IDynamoDBsetDynamoDBStoreHandler in interface IDynamoDB<K,T extends org.apache.gora.persistency.Persistent>dynamoHandler - handler to main DynamoDBpublic void deleteSchema()
public String getSchemaName()
Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.