public class JCacheStore<K,T extends org.apache.gora.persistency.impl.PersistentBase>
extends org.apache.gora.store.impl.DataStoreBase<K,T>
JCacheStore is the primary class
responsible for GORA CRUD operations on Hazelcast Caches. This class can be think
of as caching layer that can is wrapped over any persistency dataStore implementations
which extends DataStore. This class delegates
most operations to it s persistency dataStore. Hazelcast cache implementation is based on
JCache JSR 107 specification.| Constructor and Description |
|---|
JCacheStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createSchema() |
boolean |
delete(K key) |
long |
deleteByQuery(org.apache.gora.query.Query<K,T> query) |
void |
deleteSchema() |
org.apache.gora.query.Result<K,T> |
execute(org.apache.gora.query.Query<K,T> query) |
void |
flush() |
T |
get(K key) |
T |
get(K key,
String[] fields) |
List<org.apache.gora.query.PartitionQuery<K,T>> |
getPartitions(org.apache.gora.query.Query<K,T> query) |
String |
getSchemaName() |
void |
initialize(Class<K> keyClass,
Class<T> persistentClass,
Properties properties) |
org.apache.gora.query.Query<K,T> |
newQuery() |
void |
put(K key,
T val) |
boolean |
schemaExists() |
equals, getBeanFactory, getConf, getFields, getFieldsToQuery, getKeyClass, getOrCreateConf, getPersistentClass, getSchemaName, newKey, newPersistent, readFields, setBeanFactory, setConf, setKeyClass, setPersistentClass, truncateSchema, writepublic void initialize(Class<K> keyClass, Class<T> persistentClass, Properties properties)
public String getSchemaName()
public void createSchema()
public void deleteSchema()
public boolean schemaExists()
public boolean delete(K key)
public List<org.apache.gora.query.PartitionQuery<K,T>> getPartitions(org.apache.gora.query.Query<K,T> query) throws IOException
IOExceptionpublic void flush()
public void close()
Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.