public interface TraversalEngine extends Serializable
Traversal. There are two TraversalEngine.Types of TraversalEngines.
TraversalEngine.Type.STANDARD is the OLTP, iterator-based model of graph traversal.
TraversalEngine.Type.COMPUTER is the OLAP, message passing model of graph traversal.
Every TraversalSource should be provided a TraversalEngine.Builder so it can construct an engine for each spawned Traversal.| Modifier and Type | Interface and Description |
|---|---|
static interface |
TraversalEngine.Builder |
static class |
TraversalEngine.Type |
| Modifier and Type | Method and Description |
|---|---|
Optional<GraphComputer> |
getGraphComputer()
If the traversal engine is of type
TraversalEngine.Type.COMPUTER, then it should have the GraphComputer used for executing the traversal. |
TraversalEngine.Type |
getType()
Get the type of the engine:
TraversalEngine.Type.STANDARD or TraversalEngine.Type.COMPUTER. |
default boolean |
isComputer()
Whether or not the type is
TraversalEngine.Type.COMPUTER. |
default boolean |
isStandard()
Whether or not the type is
TraversalEngine.Type.STANDARD. |
TraversalEngine.Type getType()
TraversalEngine.Type.STANDARD or TraversalEngine.Type.COMPUTER.Optional<GraphComputer> getGraphComputer()
TraversalEngine.Type.COMPUTER, then it should have the GraphComputer used for executing the traversal.default boolean isStandard()
TraversalEngine.Type.STANDARD.default boolean isComputer()
TraversalEngine.Type.COMPUTER.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.