public class AccumuloEntityStore extends Object implements EntityStore
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_IDX_TABLE_NAME |
static EntityShardBuilder |
DEFAULT_SHARD_BUILDER |
static String |
DEFAULT_SHARD_TABLE_NAME |
| Constructor and Description |
|---|
AccumuloEntityStore(org.apache.accumulo.core.client.Connector connector) |
AccumuloEntityStore(org.apache.accumulo.core.client.Connector connector,
String indexTable,
String shardTable,
EntityShardBuilder shardBuilder,
StoreConfig config,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Iterable<org.calrissian.mango.domain.entity.EntityIndex> typesAndIds,
Auths auths) |
void |
flush() |
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> |
get(List<org.calrissian.mango.domain.entity.EntityIndex> typesAndIds,
Set<String> selectFields,
Auths auths) |
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> |
getAllByType(Set<String> types,
Set<String> selectFields,
Auths auths) |
protected EntityQfdHelper |
getHelper() |
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.Pair<String,String>> |
keys(String type,
Auths auths) |
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> |
query(Set<String> types,
org.calrissian.mango.criteria.domain.Node query,
Set<String> selectFields,
Auths auths) |
void |
save(Iterable<? extends org.calrissian.mango.domain.entity.Entity> entities) |
void |
shutdown() |
public static final String DEFAULT_IDX_TABLE_NAME
public static final String DEFAULT_SHARD_TABLE_NAME
public static final EntityShardBuilder DEFAULT_SHARD_BUILDER
public AccumuloEntityStore(org.apache.accumulo.core.client.Connector connector)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionpublic AccumuloEntityStore(org.apache.accumulo.core.client.Connector connector,
String indexTable,
String shardTable,
EntityShardBuilder shardBuilder,
StoreConfig config,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionpublic void shutdown()
throws org.apache.accumulo.core.client.MutationsRejectedException
shutdown in interface EntityStoreorg.apache.accumulo.core.client.MutationsRejectedExceptionpublic void save(Iterable<? extends org.calrissian.mango.domain.entity.Entity> entities)
save in interface EntityStorepublic org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> get(List<org.calrissian.mango.domain.entity.EntityIndex> typesAndIds, Set<String> selectFields, Auths auths)
get in interface EntityStorepublic org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> getAllByType(Set<String> types, Set<String> selectFields, Auths auths)
getAllByType in interface EntityStorepublic org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> query(Set<String> types, org.calrissian.mango.criteria.domain.Node query, Set<String> selectFields, Auths auths)
query in interface EntityStorepublic org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.Pair<String,String>> keys(String type, Auths auths)
keys in interface EntityStorepublic void delete(Iterable<org.calrissian.mango.domain.entity.EntityIndex> typesAndIds, Auths auths)
delete in interface EntityStorepublic void flush()
throws Exception
flush in interface EntityStoreExceptionprotected EntityQfdHelper getHelper()
Copyright © 2014 Calrissian. All Rights Reserved.