| Package | Description |
|---|---|
| org.neo4j.graphdb |
The core graph database API.
|
| org.neo4j.graphdb.traversal |
Traversal framework.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
Result.ResultRow.getPath(String key) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Relationship> |
PathExpander.expand(Path path,
BranchState<STATE> state)
|
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Class and Description |
|---|---|
static class |
Paths.DefaultPathDescriptor<T extends Path>
The default
Paths.PathDescriptor used in common toString()
representations in classes implementing Path. |
static interface |
Paths.PathDescriptor<T extends Path>
Provides hooks to help build a string representation of a
Path. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TraversalBranch
Represents a
position and a PathExpander with a
traversal context, for example parent and an iterator of relationships to go
next. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Path> |
Paths.descriptorForIdAndProperties(boolean nodeId,
boolean relId,
String... propertyKeys)
Create a new
Paths.PathDescriptor that prints values of listed property keys
and id of nodes and relationships if configured so. |
static <T extends Path> |
Paths.pathToString(T path,
Paths.PathDescriptor<T> builder)
Method for building a string representation of a
Path, using
the given builder. |
| Modifier and Type | Method and Description |
|---|---|
static Path |
Paths.singleNodePath(Node node) |
| Modifier and Type | Method and Description |
|---|---|
static Comparator<? super Path> |
Sorting.endNodeProperty(String propertyKey)
Sorts
Paths by the property value of each path's end node. |
static Comparator<? super Path> |
Sorting.endNodeRelationshipCount(PathExpander expander)
Sorts
Paths by the relationship count returned for its end node
by the supplied expander. |
Iterable<Path> |
BranchCollisionDetector.evaluate(TraversalBranch branch,
Direction direction)
Evaluate the given
branch coming from either the start side or the
end side. |
org.neo4j.graphdb.ResourceIterator<Path> |
Traverser.iterator()
Represents the traversal in the form of
Paths. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BidirectionalUniquenessFilter.checkFull(Path path)
Checks
Path alone to see if it follows the uniqueness contract
provided by this UniquenessFilter. |
static String |
Paths.defaultPathToString(Path path)
TODO: This method re-binds nodes and relationships.
|
Evaluation |
Evaluator.evaluate(Path path)
Evaluates a
Path and returns an Evaluation containing
information about whether or not to include it in the traversal result,
i.e return it from the Traverser. |
Evaluation |
Evaluator.AsPathEvaluator.evaluate(Path path) |
Evaluation |
PathEvaluator.Adapter.evaluate(Path path) |
Evaluation |
Evaluator.AsPathEvaluator.evaluate(Path path,
BranchState<STATE> state) |
Evaluation |
PathEvaluator.evaluate(Path path,
BranchState<STATE> state)
Evaluates a
Path and returns an Evaluation containing
information about whether or not to include it in the traversal result,
i.e return it from the Traverser. |
STATE |
InitialBranchState.initialState(Path path)
Returns an initial state for a
Path. |
STATE |
InitialBranchState.State.initialState(Path path) |
String |
Paths.DefaultPathDescriptor.nodeRepresentation(Path path,
Node node) |
String |
Paths.DefaultPathDescriptor.relationshipRepresentation(Path path,
Node from,
Relationship relationship) |
static String |
Paths.simplePathToString(Path path)
Returns a quite simple string representation of a
Path. |
static String |
Paths.simplePathToString(Path path,
String nodePropertyKey)
Returns a quite simple string representation of a
Path. |
| Modifier and Type | Method and Description |
|---|---|
BranchCollisionDetector |
BranchCollisionPolicy.create(Evaluator evaluator,
Predicate<Path> pathPredicate) |
TraversalDescription |
TraversalDescription.sort(Comparator<? super Path> comparator) |
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.