public class AccumuloStore<K,T extends org.apache.gora.persistency.impl.PersistentBase>
extends org.apache.gora.store.impl.DataStoreBase<K,T>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_MAPPING_FILE |
protected static String |
INSTANCE_NAME_PROPERTY |
static org.slf4j.Logger |
LOG |
protected static String |
MOCK_PROPERTY |
protected static String |
PASSWORD_PROPERTY |
protected static String |
USERNAME_PROPERTY |
protected static String |
ZOOKEEPERS_NAME_PROPERTY |
| Constructor and Description |
|---|
AccumuloStore() |
| 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() |
K |
fromBytes(Class<K> clazz,
byte[] val) |
static <K> K |
fromBytes(Encoder encoder,
Class<K> clazz,
byte[] val) |
static Object |
fromBytes(Encoder encoder,
org.apache.avro.Schema schema,
byte[] data) |
Object |
fromBytes(org.apache.avro.Schema schema,
byte[] data) |
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() |
org.apache.accumulo.core.data.ByteSequence |
populate(Iterator<Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> iter,
T persistent) |
void |
put(K key,
T val) |
protected AccumuloMapping |
readMapping(String filename) |
boolean |
schemaExists() |
static byte[] |
toBytes(Encoder encoder,
Object o) |
byte[] |
toBytes(Object o) |
byte[] |
toBytes(org.apache.avro.Schema toSchema,
Object o) |
equals, get, getBeanFactory, getConf, getFields, getFieldsToQuery, getKeyClass, getOrCreateConf, getPersistentClass, getSchemaName, newKey, newPersistent, readFields, setBeanFactory, setConf, setKeyClass, setPersistentClass, truncateSchema, writeprotected static final String MOCK_PROPERTY
protected static final String INSTANCE_NAME_PROPERTY
protected static final String ZOOKEEPERS_NAME_PROPERTY
protected static final String USERNAME_PROPERTY
protected static final String PASSWORD_PROPERTY
protected static final String DEFAULT_MAPPING_FILE
public static final org.slf4j.Logger LOG
public Object fromBytes(org.apache.avro.Schema schema, byte[] data) throws org.apache.gora.util.GoraException
org.apache.gora.util.GoraExceptionpublic static Object fromBytes(Encoder encoder, org.apache.avro.Schema schema, byte[] data)
public byte[] toBytes(org.apache.avro.Schema toSchema,
Object o)
public byte[] toBytes(Object o)
public void initialize(Class<K> keyClass, Class<T> persistentClass, Properties properties)
protected AccumuloMapping readMapping(String filename) throws IOException
IOExceptionpublic String getSchemaName()
public void createSchema()
public void deleteSchema()
public boolean schemaExists()
public org.apache.accumulo.core.data.ByteSequence populate(Iterator<Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> iter, T persistent) throws IOException
IOExceptionpublic 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-2014 The Apache Software Foundation. All Rights Reserved.