Package org.rumbledb.items
Class ItemComparator
java.lang.Object
org.rumbledb.items.ItemComparator
- All Implemented Interfaces:
Serializable
,Comparator<Item>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionItemComparator
(boolean compareMin, RumbleException exception) ItemComparator
(RumbleException exception) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ItemComparator
-
ItemComparator
-
-
Method Details
-
compare
Comparator used for sequence aggregate functions and their RDD evaluations It compares 2 atomic items (non-null) Non-atomics and nulls throw an exception- Specified by:
compare
in interfaceComparator<Item>
- Returns:
- -1 if v1 < v2; 0 if v1 == v2; 1 if v1 > v2;
-