public class StandardTitanGraph extends TitanBlueprintsGraph
org.apache.tinkerpop.gremlin.structure.Graph.Exceptions, org.apache.tinkerpop.gremlin.structure.Graph.Features, org.apache.tinkerpop.gremlin.structure.Graph.Hidden, org.apache.tinkerpop.gremlin.structure.Graph.OptIn, org.apache.tinkerpop.gremlin.structure.Graph.OptIns, org.apache.tinkerpop.gremlin.structure.Graph.OptOut, org.apache.tinkerpop.gremlin.structure.Graph.OptOuts, org.apache.tinkerpop.gremlin.structure.Graph.Variables| Modifier and Type | Field and Description |
|---|---|
protected EdgeSerializer |
edgeSerializer |
protected IndexSerializer |
indexSerializer |
protected Serializer |
serializer |
SliceQuery |
vertexExistenceQuery |
| Constructor and Description |
|---|
StandardTitanGraph(GraphDatabaseConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
acquireLock(CompositeIndexType index,
boolean acquireLocksConfig) |
static boolean |
acquireLock(InternalRelation relation,
int pos,
boolean acquireLocksConfig) |
void |
assignID(InternalRelation relation) |
void |
assignID(InternalVertex vertex,
VertexLabel label) |
StandardTransactionBuilder |
buildTransaction()
Returns a
TransactionBuilder to construct a new thread-independent TitanTransaction. |
void |
close()
Closes the graph database.
|
void |
closeTransaction(StandardTitanTx tx) |
void |
commit(Collection<InternalRelation> addedRelations,
Collection<InternalRelation> deletedRelations,
StandardTitanTx tx) |
List<EntryList> |
edgeMultiQuery(com.carrotsearch.hppc.LongArrayList vids,
SliceQuery query,
BackendTransaction tx) |
EntryList |
edgeQuery(long vid,
SliceQuery query,
BackendTransaction tx) |
org.apache.tinkerpop.gremlin.structure.Graph.Features |
features() |
Backend |
getBackend() |
GraphDatabaseConfiguration |
getConfiguration() |
Serializer |
getDataSerializer() |
EdgeSerializer |
getEdgeSerializer() |
IDManager |
getIDManager() |
IndexSerializer |
getIndexSerializer() |
Set<? extends TitanTransaction> |
getOpenTransactions() |
SchemaCache |
getSchemaCache() |
static int |
getTTL(InternalRelation rel)
The TTL of a relation (edge or property) is the minimum of:
1) The TTL configured of the relation type (if exists)
2) The TTL configured for the label any of the relation end point vertices (if exists)
|
static int |
getTTL(InternalVertex v) |
RecordIterator<Long> |
getVertexIDs(BackendTransaction tx) |
boolean |
isClosed()
Checks whether the graph is closed.
|
boolean |
isOpen()
Checks whether the graph is open.
|
TitanTransaction |
newThreadBoundTransaction() |
TitanTransaction |
newTransaction()
Opens a new thread-independent
TitanTransaction. |
StandardTitanTx |
newTransaction(TransactionConfiguration configuration) |
TitanManagement |
openManagement()
Returns the management system for this graph instance.
|
com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.ModificationSummary |
prepareCommit(Collection<InternalRelation> addedRelations,
Collection<InternalRelation> deletedRelations,
com.google.common.base.Predicate<InternalRelation> filter,
BackendTransaction mutator,
StandardTitanTx tx,
boolean acquireLocks) |
addVertex, addVertex, compute, compute, configuration, containsEdgeLabel, containsPropertyKey, containsRelationType, containsVertexLabel, edges, getCurrentThreadTx, getEdgeLabel, getOrCreateEdgeLabel, getOrCreatePropertyKey, getOrCreateVertexLabel, getPropertyKey, getRelationType, getVertexLabel, indexQuery, io, makeEdgeLabel, makePropertyKey, makeVertexLabel, multiQuery, multiQuery, query, toString, tx, variables, verticesprotected IndexSerializer indexSerializer
protected EdgeSerializer edgeSerializer
protected Serializer serializer
public SliceQuery vertexExistenceQuery
public StandardTitanGraph(GraphDatabaseConfiguration configuration)
public boolean isOpen()
TitanGraphTitanGraph.close()public boolean isClosed()
TitanGraphpublic void close()
throws TitanException
TitanGraphclose in interface TitanGraphclose in interface TitanGraphTransactionclose in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.Graphclose in class TitanBlueprintsGraphTitanException - if closing the graph database caused errors in the storage backendpublic org.apache.tinkerpop.gremlin.structure.Graph.Features features()
public IndexSerializer getIndexSerializer()
public Backend getBackend()
public IDManager getIDManager()
public EdgeSerializer getEdgeSerializer()
public Serializer getDataSerializer()
public SchemaCache getSchemaCache()
public GraphDatabaseConfiguration getConfiguration()
public TitanManagement openManagement()
TitanGraphpublic Set<? extends TitanTransaction> getOpenTransactions()
public TitanTransaction newTransaction()
TitanGraphTitanTransaction.
The transaction is open when it is returned but MUST be explicitly closed by calling TitanTransaction.commit()
or TitanTransaction.rollback() when it is no longer needed.
Note, that this returns a thread independent transaction object. It is not necessary to call this method
to use Blueprint's standard transaction framework which will automatically start a transaction with the first
operation on the graph.public StandardTransactionBuilder buildTransaction()
TitanGraphTransactionBuilder to construct a new thread-independent TitanTransaction.TransactionBuilder,
TitanGraph.newTransaction()public TitanTransaction newThreadBoundTransaction()
newThreadBoundTransaction in class TitanBlueprintsGraphpublic StandardTitanTx newTransaction(TransactionConfiguration configuration)
public void closeTransaction(StandardTitanTx tx)
public RecordIterator<Long> getVertexIDs(BackendTransaction tx)
public EntryList edgeQuery(long vid, SliceQuery query, BackendTransaction tx)
public List<EntryList> edgeMultiQuery(com.carrotsearch.hppc.LongArrayList vids, SliceQuery query, BackendTransaction tx)
public void assignID(InternalRelation relation)
public void assignID(InternalVertex vertex, VertexLabel label)
public static boolean acquireLock(InternalRelation relation, int pos, boolean acquireLocksConfig)
public static boolean acquireLock(CompositeIndexType index, boolean acquireLocksConfig)
public static int getTTL(InternalRelation rel)
rel - relation to determine the TTL forpublic static int getTTL(InternalVertex v)
public com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.ModificationSummary prepareCommit(Collection<InternalRelation> addedRelations, Collection<InternalRelation> deletedRelations, com.google.common.base.Predicate<InternalRelation> filter, BackendTransaction mutator, StandardTitanTx tx, boolean acquireLocks) throws BackendException
BackendExceptionpublic void commit(Collection<InternalRelation> addedRelations, Collection<InternalRelation> deletedRelations, StandardTitanTx tx)
Copyright © 2012–2015. All rights reserved.