T- The type of object to compare.
public class AvroCharSequenceComparator<T> extends Object implements Comparator<T>
The only case where comparing Avro objects does not work using their natural
order is when the schema is "string". The Avro string schema maps to
CharSequence interface, which does not define
Using this comparator enables comparisons between
Utf8 objects that are both valid when working with Avro strings.
|Modifier and Type||Field and Description|
A singleton instance.
|Constructor and Description|
|Modifier and Type||Method and Description|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.