T
- public abstract class DeserializerComparator<T> extends Object implements RawComparator<T>
A RawComparator
that uses a Deserializer
to deserialize
the objects to be compared so that the standard Comparator
can
be used to compare them.
One may optimize compare-intensive operations by using a custom
implementation of RawComparator
that operates directly
on byte representations.
Modifier | Constructor and Description |
---|---|
protected |
DeserializerComparator(Deserializer<T> deserializer) |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected DeserializerComparator(Deserializer<T> deserializer) throws IOException
IOException
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
compare
in interface RawComparator<T>
Copyright © 2010 The Apache Software Foundation