Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.neo4j.graphdb.traversal
Class Evaluators

    java.lang.Object
      org.neo4j.graphdb.traversal.Evaluators

    public abstract class Evaluators

extends Object

Common `Evaluator`s useful during common traversals.

Author:
  Mattias Persson
See Also:
  `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` | `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

### Evaluators

    public Evaluators()

Method Detail

### all

    public static Evaluator all()

  Returns:
    an evaluator which includes everything it encounters and doesn't prune anything.

### excludeStartPosition

    public static Evaluator excludeStartPosition()

  Returns:
    an evaluator which never prunes and includes everything except the first position, i.e. the the start node.

### toDepth

    public static Evaluator toDepth(int depth)

  Returns an `Evaluator` which includes positions down to `depth` and prunes everything deeper than that.

  Parameters:
    `depth` - the max depth to traverse to.
  Returns:
    Returns an `Evaluator` which includes positions down to `depth` and prunes everything deeper than that.

### fromDepth

    public static Evaluator fromDepth(int depth)

  Returns an `Evaluator` which only includes positions from `depth` and deeper and never prunes anything.

  Parameters:
    `depth` - the depth to start include positions from.
  Returns:
    Returns an `Evaluator` which only includes positions from `depth` and deeper and never prunes anything.

### atDepth

    public static Evaluator atDepth(int depth)

  Returns an `Evaluator` which only includes positions at `depth` and prunes everything deeper than that.

  Parameters:
    `depth` - the depth to start include positions from.
  Returns:
    Returns an `Evaluator` which only includes positions at `depth` and prunes everything deeper than that.

### includingDepths

    public static Evaluator includingDepths(int minDepth,
                                            int maxDepth)

  Returns an `Evaluator` which only includes positions between depths `minDepth` and `maxDepth`. It prunes everything deeper than `maxDepth`.

  Parameters:
    `minDepth` - minimum depth a position must have to be included.
    `maxDepth` - maximum depth a position must have to be included.
  Returns:
    Returns an `Evaluator` which only includes positions between depths `minDepth` and `maxDepth`. It prunes everything deeper than `maxDepth`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.