|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.graphdb.traversal.Evaluators
public abstract class Evaluators
Common Evaluator
s useful during common traversals.
Evaluator
,
TraversalDescription
Constructor Summary | |
---|---|
Evaluators()
|
Method Summary | |
---|---|
static Evaluator |
all()
|
static Evaluator |
atDepth(int depth)
Returns an Evaluator which only includes positions at depth
and prunes everything deeper than that. |
static Evaluator |
excludeStartPosition()
|
static Evaluator |
fromDepth(int depth)
Returns an Evaluator which only includes positions from depth
and deeper and never prunes anything. |
static Evaluator |
includingDepths(int minDepth,
int maxDepth)
Returns an Evaluator which only includes positions between
depths minDepth and maxDepth . |
static Evaluator |
lastRelationshipTypeIs(Evaluation evaluationIfMatch,
Evaluation evaluationIfNoMatch,
RelationshipType type,
RelationshipType... orAnyOfTheseTypes)
Returns an Evaluator which compares the type of the last relationship
in a Path to a given set of relationship types (one or more).If the type of
the last relationship in a path is of one of the given types then
evaluationIfMatch will be returned, otherwise
evaluationIfNoMatch will be returned. |
static Evaluator |
pruneWhereLastRelationshipTypeIs(RelationshipType type,
RelationshipType... orAnyOfTheseTypes)
|
static Evaluator |
returnWhereLastRelationshipTypeIs(RelationshipType type,
RelationshipType... orAnyOfTheseTypes)
|
static Evaluator |
toDepth(int depth)
Returns an Evaluator which includes positions down to depth
and prunes everything deeper than that. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Evaluators()
Method Detail |
---|
public static Evaluator all()
public static Evaluator excludeStartPosition()
public static Evaluator toDepth(int depth)
Evaluator
which includes positions down to depth
and prunes everything deeper than that.
depth
- the max depth to traverse to.
Evaluator
which includes positions down to
depth
and prunes everything deeper than that.public static Evaluator fromDepth(int depth)
Evaluator
which only includes positions from depth
and deeper and never prunes anything.
depth
- the depth to start include positions from.
Evaluator
which only includes positions from
depth
and deeper and never prunes anything.public static Evaluator atDepth(int depth)
Evaluator
which only includes positions at depth
and prunes everything deeper than that.
depth
- the depth to start include positions from.
Evaluator
which only includes positions at
depth
and prunes everything deeper than that.public static Evaluator includingDepths(int minDepth, int maxDepth)
Evaluator
which only includes positions between
depths minDepth
and maxDepth
. It prunes everything deeper
than maxDepth
.
minDepth
- minimum depth a position must have to be included.maxDepth
- maximum depth a position must have to be included.
Evaluator
which only includes positions between
depths minDepth
and maxDepth
. It prunes everything deeper
than maxDepth
.public static Evaluator lastRelationshipTypeIs(Evaluation evaluationIfMatch, Evaluation evaluationIfNoMatch, RelationshipType type, RelationshipType... orAnyOfTheseTypes)
Evaluator
which compares the type of the last relationship
in a Path
to a given set of relationship types (one or more).If the type of
the last relationship in a path is of one of the given types then
evaluationIfMatch
will be returned, otherwise
evaluationIfNoMatch
will be returned.
evaluationIfMatch
- the Evaluation
to return if the type of the
last relationship in the path matches any of the given types.evaluationIfNoMatch
- the Evaluation
to return if the type of the
last relationship in the path doesn't match any of the given types.type
- the (first) type (of possibly many) to match the last relationship
in paths with.orAnyOfTheseTypes
- additional types to match the last relationship in
paths with.
Evaluator
which compares the type of the last relationship
in a Path
to a given set of relationship types.public static Evaluator returnWhereLastRelationshipTypeIs(RelationshipType type, RelationshipType... orAnyOfTheseTypes)
type
- the (first) type (of possibly many) to match the last relationship
in paths with.orAnyOfTheseTypes
- additional types to match the last relationship in
paths with.
Evaluator
which compares the type of the last relationship
in a Path
to a given set of relationship types.Uses {@link Evaluation#INCLUDE_AND_CONTINUE} for {@code evaluationIfMatch}
and {@link Evaluation#EXCLUDE_AND_CONTINUE} for {@code evaluationIfNoMatch}.
public static Evaluator pruneWhereLastRelationshipTypeIs(RelationshipType type, RelationshipType... orAnyOfTheseTypes)
type
- the (first) type (of possibly many) to match the last relationship
in paths with.orAnyOfTheseTypes
- additional types to match the last relationship in
paths with.
Evaluator
which compares the type of the last relationship
in a Path
to a given set of relationship types.Uses {@link Evaluation#INCLUDE_AND_PRUNE} for {@code evaluationIfMatch}
and {@link Evaluation#INCLUDE_AND_CONTINUE} for {@code evaluationIfNoMatch}.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |