Package org.apache.parquet.schema
Class PrimitiveComparator<T>
java.lang.Object
org.apache.parquet.schema.PrimitiveComparator<T>
- All Implemented Interfaces:
Serializable,Comparator<T>
Comparator implementation that also supports the comparison of the related primitive type to avoid the
performance penalty of boxing/unboxing. The compare methods for the not supported primitive types throw
UnsupportedOperationException.
Serializable implementation that may be a UserDefinedPredicate defined this Comparator is their member variable.- See Also:
-
Field Summary
Fields -
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
-
UNSIGNED_LEXICOGRAPHICAL_BINARY_COMPARATOR
-
-
Constructor Details
-
PrimitiveComparator
public PrimitiveComparator()
-
-
Method Details
-
compare
public int compare(boolean b1, boolean b2) -
compare
public int compare(int i1, int i2) -
compare
public int compare(long l1, long l2) -
compare
public int compare(float f1, float f2) -
compare
public int compare(double d1, double d2) -
compare
- Specified by:
comparein interfaceComparator<T>
-