Package | Description |
---|---|
org.neo4j.graphdb |
The core graph database API.
|
org.neo4j.graphdb.traversal |
Traversal framework.
|
Modifier and Type | Method and Description |
---|---|
static <STATE> PathExpander<STATE> |
PathExpanders.allTypesAndDirections()
A very permissive
PathExpander that follows any type in any direction. |
<STATE> PathExpander<STATE> |
PathExpanderBuilder.build()
Produce a
PathExpander from the configuration you have built up. |
static <STATE> PathExpander<STATE> |
PathExpanders.forConstantDirectionWithTypes(RelationshipType... types)
An expander forcing constant relationship direction
|
static <STATE> PathExpander<STATE> |
PathExpanders.forDirection(Direction direction)
A very permissive
PathExpander that follows any type in direction . |
static <STATE> PathExpander<STATE> |
PathExpanders.forType(RelationshipType type)
A very permissive
PathExpander that follows type relationships in any direction. |
static <STATE> PathExpander<STATE> |
PathExpanders.forTypeAndDirection(RelationshipType type,
Direction direction)
|
static <STATE> PathExpander<STATE> |
PathExpanders.forTypesAndDirections(RelationshipType type1,
Direction direction1,
RelationshipType type2,
Direction direction2,
Object... more)
|
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths. |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
BiFunction<Path,BranchState,Boolean> pred)
A wrapper that uses
Paths.DefaultPathDescriptor
to print expanded paths that fulfill BiFunction predicate. |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
BiFunction<Path,BranchState,Boolean> pred,
Paths.PathDescriptor descriptor)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths
that fulfill BiFunction predicate using given Paths.PathDescriptor . |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
BiFunction<Path,BranchState,Boolean> pred,
Paths.PathDescriptor descriptor,
PrintStream out)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths
that fulfill BiFunction predicate using given Paths.PathDescriptor . |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
Paths.PathDescriptor descriptor)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths
using given Paths.PathDescriptor . |
PathExpander<STATE> |
PathExpander.reverse()
Returns a new instance with the exact expansion logic, but reversed.
|
Modifier and Type | Method and Description |
---|---|
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths. |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
BiFunction<Path,BranchState,Boolean> pred)
A wrapper that uses
Paths.DefaultPathDescriptor
to print expanded paths that fulfill BiFunction predicate. |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
BiFunction<Path,BranchState,Boolean> pred,
Paths.PathDescriptor descriptor)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths
that fulfill BiFunction predicate using given Paths.PathDescriptor . |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
BiFunction<Path,BranchState,Boolean> pred,
Paths.PathDescriptor descriptor,
PrintStream out)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths
that fulfill BiFunction predicate using given Paths.PathDescriptor . |
static <STATE> PathExpander<STATE> |
PathExpanders.printingWrapper(PathExpander<STATE> source,
Paths.PathDescriptor descriptor)
A wrapper that uses
Paths.DefaultPathDescriptor to print expanded paths
using given Paths.PathDescriptor . |
Modifier and Type | Method and Description |
---|---|
BranchSelector |
BranchOrderingPolicy.create(TraversalBranch startBranch,
PathExpander expander)
Instantiates a
BranchSelector with startBranch as the
first branch to base a decision on "where to go next". |
static Comparator<? super Path> |
Sorting.endNodeRelationshipCount(PathExpander expander)
Sorts
Path s by the relationship count returned for its end node
by the supplied expander . |
TraversalDescription |
TraversalDescription.expand(PathExpander<?> expander)
Sets the
PathExpander as the expander of relationships,
discarding all previous calls to
TraversalDescription.relationships(RelationshipType) and
TraversalDescription.relationships(RelationshipType, Direction) or any other expand method. |
<STATE> TraversalDescription |
TraversalDescription.expand(PathExpander<STATE> expander,
InitialBranchState<STATE> initialState)
Sets the
PathExpander as the expander of relationships,
discarding all previous calls to
TraversalDescription.relationships(RelationshipType) and
TraversalDescription.relationships(RelationshipType, Direction) or any other expand method. |
void |
TraversalBranch.initialize(PathExpander expander,
TraversalContext metadata)
Initializes this
TraversalBranch , the relationship iterator,
Evaluation etc. |
TraversalBranch |
TraversalBranch.next(PathExpander expander,
TraversalContext metadata)
Returns the next expansion source from the expanded relationships
from the current node.
|
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.