public interface GraphSession extends Session
Generally this interface won't be referenced directly in an application; instead, you should
DseSession, which is a combination of this interface and many others for a more
integrated usage of DataStax Enterprise's multi-model database via a single entry point. However,
it is still possible to cast a
DseSession to a
GraphSession to only expose the
DSE Graph execution methods.
|Modifier and Type||Method and Description|
Executes a graph statement synchronously (the calling thread blocks until the result becomes available).
Executes a graph statement asynchronously (the call returns as soon as the statement was sent, generally before the result is available).
checkSchemaAgreement, checkSchemaAgreementAsync, execute, getContext, getKeyspace, getMetadata, getMetrics, getName, isSchemaMetadataEnabled, refreshSchema, refreshSchemaAsync, setSchemaMetadataEnabled
@NonNull default GraphResultSet execute(@NonNull GraphStatement<?> graphStatement)
The driver provides different kinds of graph statements:
FluentGraphStatement(recommended): wraps a fluent TinkerPop traversal;
BatchGraphStatement: groups together multiple mutating traversals (
g.addV()/g.addE()) inside a single transaction and avoids multiple client-server round-trips. Improves performance in data ingestion scenarios;
ScriptGraphStatement: wraps a Gremlin-groovy script provided as a plain Java string. Required for administrative queries such as creating/dropping a graph, configuration and schema.
@NonNull default CompletionStage<AsyncGraphResultSet> executeAsync(@NonNull GraphStatement<?> graphStatement)
Copyright © 2017–2019. All rights reserved.