public abstract class JanusGraphBlueprintsTransaction extends Object implements JanusGraphTransaction
JanusGraphTransaction.
Provides utility methods that wrap JanusGraph calls with Blueprints terminology.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| Constructor and Description |
|---|
JanusGraphBlueprintsTransaction() |
| Modifier and Type | Method and Description |
|---|---|
JanusGraphVertex |
addVertex(Object... keyValues)
Creates a new vertex in the graph with the given vertex id.
|
void |
close() |
FulgoraGraphComputer |
compute() |
<C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> |
compute(Class<C> graphComputerClass) |
org.apache.commons.configuration2.Configuration |
configuration() |
Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edges(Object... edgeIds) |
org.apache.tinkerpop.gremlin.structure.Graph.Features |
features() |
protected abstract JanusGraphBlueprintsGraph |
getGraph()
Returns the graph that this transaction is based on
|
<I extends org.apache.tinkerpop.gremlin.structure.io.Io> |
io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I> builder) |
String |
toString() |
org.apache.tinkerpop.gremlin.structure.Transaction |
tx() |
org.apache.tinkerpop.gremlin.structure.Graph.Variables |
variables() |
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(Object... vertexIds) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddVertex, commit, expireSchemaElement, getEdges, getVertex, getVertices, hasModifications, isClosed, isOpen, rollbackaddVertex, indexQuery, mixedIndexCountQuery, multiQuery, multiQuery, querytraversal, traversal, txaddConnection, addProperties, addProperties, makeEdgeLabel, makePropertyKey, makeVertexLabelcontainsEdgeLabel, containsPropertyKey, containsRelationType, containsVertexLabel, getEdgeLabel, getOrCreateEdgeLabel, getOrCreatePropertyKey, getOrCreatePropertyKey, getOrCreatePropertyKey, getOrCreateVertexLabel, getPropertyKey, getRelationType, getVertexLabelprotected abstract JanusGraphBlueprintsGraph getGraph()
public org.apache.tinkerpop.gremlin.structure.Graph.Features features()
features in interface org.apache.tinkerpop.gremlin.structure.Graphpublic org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()
variables in interface org.apache.tinkerpop.gremlin.structure.Graphpublic org.apache.commons.configuration2.Configuration configuration()
configuration in interface org.apache.tinkerpop.gremlin.structure.Graphpublic <I extends org.apache.tinkerpop.gremlin.structure.io.Io> I io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I> builder)
io in interface org.apache.tinkerpop.gremlin.structure.Graphpublic <C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException
compute in interface org.apache.tinkerpop.gremlin.structure.GraphIllegalArgumentExceptionpublic FulgoraGraphComputer compute() throws IllegalArgumentException
compute in interface org.apache.tinkerpop.gremlin.structure.GraphIllegalArgumentExceptionpublic JanusGraphVertex addVertex(Object... keyValues)
Custom id setting must be enabled via the configuration option GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID
and valid JanusGraph vertex ids must be provided. Use IDManager.toVertexId(long)
to construct a valid JanusGraph vertex id from a user id, where idManager can be obtained through
StandardJanusGraph.getIDManager().
long vertexId = ((StandardJanusGraph) graph).getIDManager().toVertexId(userVertexId);
addVertex in interface org.apache.tinkerpop.gremlin.structure.GraphaddVertex in interface TransactionkeyValues - key-value pairs of properties to characterize or attach to the vertexpublic Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(Object... vertexIds)
vertices in interface org.apache.tinkerpop.gremlin.structure.Graphpublic Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(Object... edgeIds)
edges in interface org.apache.tinkerpop.gremlin.structure.Graphpublic org.apache.tinkerpop.gremlin.structure.Transaction tx()
tx in interface org.apache.tinkerpop.gremlin.structure.Graphpublic void close()
close in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.Graphclose in interface TransactionCopyright © 2012–2023. All rights reserved.