public class RelationComparator extends Object implements Comparator<InternalRelation>
Comparator
for JanusGraphRelation
that uses a defined order to compare the relations with
or otherwise uses the natural order of relations.Constructor and Description |
---|
RelationComparator(InternalVertex v) |
RelationComparator(InternalVertex v,
OrderList orders) |
Modifier and Type | Method and Description |
---|---|
int |
compare(InternalRelation r1,
InternalRelation r2) |
static int |
compareValues(Object v1,
Object v2) |
static int |
compareValues(Object v1,
Object v2,
Order order) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public RelationComparator(InternalVertex v)
public RelationComparator(InternalVertex v, OrderList orders)
public int compare(InternalRelation r1, InternalRelation r2)
compare
in interface Comparator<InternalRelation>
Copyright © 2012–2023. All rights reserved.