public interface FluentGraphStatement extends GraphStatement<FluentGraphStatement>
GraphTraversal
as the query.
Typically used like so:
import static com.datastax.dse.driver.api.core.graph.DseGraph.g;
FluentGraphStatement statement = FluentGraphStatement.newInstance(g.V().has("name", "marko"));
GraphResultSet graphResultSet = dseSession.execute(statement);
DseGraph.g
ASYNC, SYNC
Modifier and Type | Method and Description |
---|---|
static FluentGraphStatementBuilder |
builder(FluentGraphStatement template)
Create a builder helper object to start creating a new instance with an existing statement as a
template.
|
static FluentGraphStatementBuilder |
builder(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?> traversal)
Create a builder object to start creating a new instance from the given traversal.
|
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?> |
getTraversal()
The underlying TinkerPop object representing the traversal executed by this statement.
|
static FluentGraphStatement |
newInstance(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?> traversal)
Create a new instance from the given traversal.
|
getConsistencyLevel, getGraphName, getKeyspace, getReadConsistencyLevel, getRoutingKey, getRoutingKeyspace, getRoutingToken, getSubProtocol, getTimeout, getTimestamp, getTraversalSource, getWriteConsistencyLevel, isTracing, setConsistencyLevel, setCustomPayload, setExecutionProfile, setExecutionProfileName, setGraphName, setIdempotent, setNode, setReadConsistencyLevel, setSubProtocol, setTimeout, setTimestamp, setTraversalSource, setWriteConsistencyLevel
getCustomPayload, getExecutionProfile, getExecutionProfileName, getNode, getPartitioner, isIdempotent
@NonNull static FluentGraphStatement newInstance(@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?> traversal)
Use builder(GraphTraversal)
if you want to set more options before building the
final statement instance.
@NonNull static FluentGraphStatementBuilder builder(@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?> traversal)
Note that this builder is mutable and not thread-safe.
@NonNull static FluentGraphStatementBuilder builder(@NonNull FluentGraphStatement template)
Note that this builder is mutable and not thread-safe.
@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?> getTraversal()
Copyright © 2017–2024. All rights reserved.