public class StandardTitanGraph extends TitanBlueprintsGraph
| Modifier and Type | Field and Description |
|---|---|
protected EdgeSerializer |
edgeSerializer |
protected IndexSerializer |
indexSerializer |
protected Serializer |
serializer |
SliceQuery |
vertexExistenceQuery |
| Constructor and Description |
|---|
StandardTitanGraph(GraphDatabaseConfiguration configuration) |
addEdge, addVertex, addVertex, commit, containsVertexLabel, createKeyIndex, dropKeyIndex, getCurrentThreadTx, getEdge, getEdges, getEdges, getIndexedKeys, getRelationType, getVertex, getVertexLabel, getVertices, getVertices, indexQuery, makeEdgeLabel, makePropertyKey, makeVertexLabel, multiQuery, multiQuery, query, removeEdge, removeVertex, rollback, stopTransaction, toStringprotected final IndexSerializer indexSerializer
protected final EdgeSerializer edgeSerializer
protected final Serializer serializer
public final SliceQuery vertexExistenceQuery
public StandardTitanGraph(GraphDatabaseConfiguration configuration)
public boolean isOpen()
TitanGraphTitanGraph.shutdown()public void shutdown()
throws TitanException
TitanGraphshutdown in interface TitanGraphshutdown in interface com.tinkerpop.blueprints.Graphshutdown in interface com.tinkerpop.blueprints.TransactionalGraphshutdown in class TitanBlueprintsGraphTitanException - if closing the graph database caused errors in the storage backendpublic com.tinkerpop.blueprints.Features getFeatures()
public IndexSerializer getIndexSerializer()
public IDInspector getIDInspector()
public IDManager getIDManager()
public EdgeSerializer getEdgeSerializer()
public Serializer getDataSerializer()
public SchemaCache getSchemaCache()
public GraphDatabaseConfiguration getConfiguration()
public TitanManagement getManagementSystem()
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(InternalIndexType index, boolean acquireLocksConfig)
public boolean prepareCommit(Collection<InternalRelation> addedRelations, Collection<InternalRelation> deletedRelations, com.google.common.base.Predicate<InternalRelation> filter, BackendTransaction mutator, StandardTitanTx tx, boolean acquireLocks) throws StorageException
StorageExceptionpublic void commit(Collection<InternalRelation> addedRelations, Collection<InternalRelation> deletedRelations, StandardTitanTx tx)
Copyright © 2012–2014. All rights reserved.