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.
| 限定符 | 构造器和说明 |
|---|---|
protected |
DeserializerComparator(Deserializer<T> deserializer) |
protected DeserializerComparator(Deserializer<T> deserializer) throws IOException
IOExceptionpublic int compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
compare 在接口中 RawComparator<T>Copyright © 2009 The Apache Software Foundation