Package org.apache.parquet.schema
Class PrimitiveComparator<T>
- java.lang.Object
-
- org.apache.parquet.schema.PrimitiveComparator<T>
-
- All Implemented Interfaces:
Serializable,Comparator<T>
public abstract class PrimitiveComparator<T> extends Object implements Comparator<T>, Serializable
Comparatorimplementation that also supports the comparison of the related primitive type to avoid the performance penalty of boxing/unboxing. Thecomparemethods for the not supported primitive types throwUnsupportedOperationException.Serializableimplementation that may be a UserDefinedPredicate defined this Comparator is their member variable.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PrimitiveComparator<Binary>UNSIGNED_LEXICOGRAPHICAL_BINARY_COMPARATOR
-
Constructor Summary
Constructors Constructor Description PrimitiveComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(boolean b1, boolean b2)intcompare(double d1, double d2)intcompare(float f1, float f2)intcompare(int i1, int i2)intcompare(long l1, long l2)intcompare(T o1, T o2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
UNSIGNED_LEXICOGRAPHICAL_BINARY_COMPARATOR
public static final PrimitiveComparator<Binary> UNSIGNED_LEXICOGRAPHICAL_BINARY_COMPARATOR
-
-
Method Detail
-
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
public final int compare(T o1, T o2)
- Specified by:
comparein interfaceComparator<T>
-
-