Class PartitionedTableLocationKey.PartitionsComparator
java.lang.Object
io.deephaven.engine.table.impl.locations.impl.PartitionedTableLocationKey.PartitionsComparator
- All Implemented Interfaces:
Comparator<Map<String,
Comparable<?>>>
- Enclosing class:
- PartitionedTableLocationKey
public static final class PartitionedTableLocationKey.PartitionsComparator
extends Object
implements Comparator<Map<String,Comparable<?>>>
Compares two maps of partitions by key-value pairs.
p1
's entry order determines the priority of each
partition in the comparison, and it's assumed that p2
will have the same entry order.
compare(Map, Map)
will throw an UnknownPartitionKeyException
if one of the maps is missing keys
found in the other.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(Map<String, Comparable<?>> p1, Map<String, Comparable<?>> p2) 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
-
Field Details
-
INSTANCE
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Map<String,
Comparable<?>>>
-