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