public abstract class Sorting extends Object
TraversalDescription.sort(Comparator)
.Modifier and Type | Method and Description |
---|---|
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 . |
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.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.