|
Neo4j Community | |||||||||
| 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 Paths by the property value of each path's end node. |
static Comparator<? super Path> |
endNodeRelationshipCount(PathExpander expander)
Sorts Paths by the relationship count returned for its end node
by the supplied expander. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Comparator<? super Path> endNodeProperty(String propertyKey)
Paths 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)
Paths 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.
|
Neo4j Community | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||