Class ImportStateComparator
java.lang.Object
io.deephaven.enterprise.ingester.impl.ImportStateComparator
- All Implemented Interfaces:
Comparator<ImportStateDetails>
For the CompositeImportState we need to have a well-defined order. We first sort by class (using the canonical name
as a key), then by the key columns. If there is still an ambiguity, we sort by the Constructor arguments, which we
assume must be comparable to disambiguate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static int
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
-
ImportStateComparator
public ImportStateComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<ImportStateDetails>
-
doCompare
-