|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.graphdb.traversal.Sorting
public abstract class Sorting
Provides some common traversal sorting, used by
TraversalDescription.sort(Comparator)
.
Method Summary | |
---|---|
static Comparator<? super Path> |
endNodeProperty(String propertyKey)
Sorts Path s by the property value of each path's end node. |
static Comparator<? super Path> |
endNodeRelationshipCount(PathExpander expander)
Sorts Path s by the relationship count returned for its end node
by the supplied expander . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Comparator<? super Path> endNodeProperty(String propertyKey)
Path
s by the property value of each path's end node.
propertyKey
- the property key of the values to sort on.
Comparator
suitable for sorting traversal results.public static Comparator<? super Path> endNodeRelationshipCount(PathExpander expander)
Path
s by the relationship count returned for its end node
by the supplied expander
.
expander
- the PathExpander
to use for getting relationships
off of each Path
's end node.
Comparator
suitable for sorting traversal results.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |