Class AbstractInfinispanLogMinerEventProcessor.EventKeySortComparator
java.lang.Object
io.debezium.connector.oracle.logminer.processor.infinispan.AbstractInfinispanLogMinerEventProcessor.EventKeySortComparator
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
- AbstractInfinispanLogMinerEventProcessor
private static class AbstractInfinispanLogMinerEventProcessor.EventKeySortComparator
extends Object
implements Comparator<String>
A comparator that guarantees that the sort order applied to event keys is such that
they are treated as numerical values, sorted as numeric values rather than strings
which would allow "100" to come before "9".
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EventKeySortComparator
private EventKeySortComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<String>
-