public static interface Graph.Features.GraphFeatures extends Graph.Features.FeatureSet
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE_COMPUTER |
static String |
FEATURE_CONCURRENT_ACCESS |
static String |
FEATURE_IO_READ |
static String |
FEATURE_IO_WRITE |
static String |
FEATURE_PERSISTENCE |
static String |
FEATURE_THREADED_TRANSACTIONS |
static String |
FEATURE_TRANSACTIONS |
Modifier and Type | Method and Description |
---|---|
default boolean |
supportsComputer()
Determines if the
Graph implementation supports GraphComputer based processing. |
default boolean |
supportsConcurrentAccess()
Determines if the
Graph implementation supports more than one connection to the same instance
at the same time. |
default boolean |
supportsIoRead()
Determines if the
Graph implementations supports read operations as executed with the
GraphTraversalSource.io(String) step. |
default boolean |
supportsIoWrite()
Determines if the
Graph implementations supports write operations as executed with the
GraphTraversalSource.io(String) step. |
default boolean |
supportsPersistence()
Determines if the
Graph implementation supports persisting it's contents natively to disk. |
default boolean |
supportsThreadedTransactions()
Determines if the
Graph implementation supports threaded transactions which allow a transaction
to be executed across multiple threads via Transaction.createThreadedTx() . |
default boolean |
supportsTransactions()
Determines if the
Graph implementations supports transactions. |
default Graph.Features.VariableFeatures |
variables()
Gets the features related to "graph sideEffects" operation.
|
static final String FEATURE_COMPUTER
static final String FEATURE_TRANSACTIONS
static final String FEATURE_PERSISTENCE
static final String FEATURE_THREADED_TRANSACTIONS
static final String FEATURE_CONCURRENT_ACCESS
static final String FEATURE_IO_READ
static final String FEATURE_IO_WRITE
default boolean supportsComputer()
Graph
implementation supports GraphComputer
based processing.default boolean supportsPersistence()
Graph
implementation supports persisting it's contents natively to disk.
This feature does not refer to every graph's ability to write to disk via the Gremlin IO packages
(.e.g. GraphML), unless the graph natively persists to disk via those options somehow. For example,
TinkerGraph does not support this feature as it is a pure in-sideEffects graph.default boolean supportsConcurrentAccess()
Graph
implementation supports more than one connection to the same instance
at the same time. For example, Neo4j embedded does not support this feature because concurrent
access to the same database files by multiple instances is not possible. However, Neo4j HA could
support this feature as each new Graph
instance coordinates with the Neo4j cluster allowing
multiple instances to operate on the same database.default boolean supportsTransactions()
Graph
implementations supports transactions.default boolean supportsThreadedTransactions()
Graph
implementation supports threaded transactions which allow a transaction
to be executed across multiple threads via Transaction.createThreadedTx()
.default boolean supportsIoRead()
Graph
implementations supports read operations as executed with the
GraphTraversalSource.io(String)
step. Graph implementations will generally support this by
default as any graph that can support direct mutation through the Structure API will by default
accept data from the standard TinkerPop GraphReader
implementations. However, some graphs like
HadoopGraph
don't accept direct mutations but can still do reads from that io()
step.default boolean supportsIoWrite()
Graph
implementations supports write operations as executed with the
GraphTraversalSource.io(String)
step. Graph implementations will generally support this by
default given the standard TinkerPop GraphWriter
implementations. However, some graphs like
HadoopGraph
will use a different approach to handle writes.default Graph.Features.VariableFeatures variables()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.