public class AccumuloEntityGraphStore extends AccumuloEntityStore implements GraphStore
AccumuloEntityStore to provide an extra index which is capable
of making edges very fast to traverse for a possibly large set of input vertices. This graph store supports
breadth-first traversals.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
static String |
DEFAULT_TABLE_NAME |
protected String |
table |
protected org.apache.accumulo.core.client.BatchWriter |
writer |
DEFAULT_IDX_TABLE_NAME, DEFAULT_SHARD_BUILDER, DEFAULT_SHARD_TABLE_NAME| Constructor and Description |
|---|
AccumuloEntityGraphStore(org.apache.accumulo.core.client.Connector connector) |
AccumuloEntityGraphStore(org.apache.accumulo.core.client.Connector connector,
String indexTable,
String shardTable,
String edgeTable,
EntityShardBuilder shardBuilder,
StoreConfig config,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> |
adjacencies(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices,
org.calrissian.mango.criteria.domain.Node query,
Direction direction,
Auths auths)
Returns vertices adjacent to the given verties where the edges connecting the vertices match the given query
with the given direction.
|
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> |
adjacencies(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices,
org.calrissian.mango.criteria.domain.Node query,
Direction direction,
Set<String> labels,
Auths auths)
Returns vertices adjacent to the given vertices where the edges connecting the vertices match the given query
with the given direction.
|
org.calrissian.mango.collect.CloseableIterable<EdgeEntity> |
adjacentEdges(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices,
org.calrissian.mango.criteria.domain.Node query,
Direction direction,
Auths auths)
Returns edges adjacent to the given vertices that match the given query in the given direction.
|
org.calrissian.mango.collect.CloseableIterable<EdgeEntity> |
adjacentEdges(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices,
org.calrissian.mango.criteria.domain.Node query,
Direction direction,
Set<String> labels,
Auths auths)
Returns the adjacent edges where the edges match some given query.
|
void |
save(Iterable<? extends org.calrissian.mango.domain.entity.Entity> entities) |
void |
shutdown() |
String |
toString() |
delete, get, getAllByType, getHelper, keys, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, get, getAllByType, keys, querypublic static final String DEFAULT_TABLE_NAME
public static final int DEFAULT_BUFFER_SIZE
protected String table
protected org.apache.accumulo.core.client.BatchWriter writer
public AccumuloEntityGraphStore(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 AccumuloEntityGraphStore(org.apache.accumulo.core.client.Connector connector,
String indexTable,
String shardTable,
String edgeTable,
EntityShardBuilder shardBuilder,
StoreConfig config,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry,
int bufferSize)
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 org.calrissian.mango.collect.CloseableIterable<EdgeEntity> adjacentEdges(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices, org.calrissian.mango.criteria.domain.Node query, Direction direction, Set<String> labels, Auths auths)
GraphStoreadjacentEdges in interface GraphStorepublic org.calrissian.mango.collect.CloseableIterable<EdgeEntity> adjacentEdges(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices, org.calrissian.mango.criteria.domain.Node query, Direction direction, Auths auths)
GraphStoreadjacentEdges in interface GraphStorepublic org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> adjacencies(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices, org.calrissian.mango.criteria.domain.Node query, Direction direction, Set<String> labels, Auths auths)
GraphStoreadjacencies in interface GraphStorepublic org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.entity.Entity> adjacencies(List<org.calrissian.mango.domain.entity.EntityIndex> fromVertices, org.calrissian.mango.criteria.domain.Node query, Direction direction, Auths auths)
GraphStoreadjacencies in interface GraphStorepublic void save(Iterable<? extends org.calrissian.mango.domain.entity.Entity> entities)
save in interface EntityStoresave in class AccumuloEntityStorepublic void shutdown()
throws org.apache.accumulo.core.client.MutationsRejectedException
shutdown in interface EntityStoreshutdown in class AccumuloEntityStoreorg.apache.accumulo.core.client.MutationsRejectedExceptionCopyright © 2014 Calrissian. All Rights Reserved.