Package org.apache.calcite.runtime
Class Utilities
java.lang.Object
org.apache.calcite.runtime.Utilities
Utility methods called by generated code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(boolean v0, boolean v1) static intcompare(byte v0, byte v1) static intcompare(char v0, char v1) static intcompare(double v0, double v1) static intcompare(float v0, float v1) static intcompare(int v0, int v1) static intcompare(long v0, long v1) static intcompare(short v0, short v1) static intcompare(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static intcompare(Comparable v0, Comparable v1) static intstatic intcompareNullsFirst(@Nullable Comparable v0, @Nullable Comparable v1) static intcompareNullsFirst(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static intcompareNullsLast(@Nullable Comparable v0, @Nullable Comparable v1) static intcompareNullsLast(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static intcompareNullsLast(List v0, List v1) static intcompareNullsLastForMergeJoin(@Nullable Comparable v0, @Nullable Comparable v1) static intcompareNullsLastForMergeJoin(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static booleanDeprecated.static CollatorgenerateCollator(Locale locale, int strength) static inthash(int h, boolean v) static inthash(int h, byte v) static inthash(int h, char v) static inthash(int h, double v) static inthash(int h, float v) static inthash(int h, int v) static inthash(int h, long v) static inthash(int h, short v) static intstatic intstatic inthashCode(boolean v) Deprecated.static inthashCode(double v) Deprecated.static inthashCode(float v) Deprecated.static inthashCode(long v) Deprecated.static Pattern.PatternBuilderCreates a pattern builder.
-
Constructor Details
-
Utilities
protected Utilities()
-
-
Method Details
-
equal
Deprecated. -
hash
-
hashCode
Deprecated.Computes the hash code of adoublevalue. Equivalent toDouble.hashCode(double), but that method was only introduced in JDK 1.8.- Parameters:
v- Value- Returns:
- Hash code
-
hashCode
Deprecated.Computes the hash code of afloatvalue. Equivalent toFloat.hashCode(float), but that method was only introduced in JDK 1.8.- Parameters:
v- Value- Returns:
- Hash code
-
hashCode
Deprecated.Computes the hash code of alongvalue. Equivalent toLong.hashCode(long), but that method was only introduced in JDK 1.8.- Parameters:
v- Value- Returns:
- Hash code
-
hashCode
Deprecated.Computes the hash code of abooleanvalue. Equivalent toBoolean.hashCode(boolean), but that method was only introduced in JDK 1.8.- Parameters:
v- Value- Returns:
- Hash code
-
hash
public static int hash(int h, boolean v) -
hash
public static int hash(int h, byte v) -
hash
public static int hash(int h, char v) -
hash
public static int hash(int h, short v) -
hash
public static int hash(int h, int v) -
hash
public static int hash(int h, long v) -
hash
public static int hash(int h, float v) -
hash
public static int hash(int h, double v) -
hash
-
compare
public static int compare(boolean v0, boolean v1) -
compare
public static int compare(byte v0, byte v1) -
compare
public static int compare(char v0, char v1) -
compare
public static int compare(short v0, short v1) -
compare
public static int compare(int v0, int v1) -
compare
public static int compare(long v0, long v1) -
compare
public static int compare(float v0, float v1) -
compare
public static int compare(double v0, double v1) -
compare
-
compare
-
compareNullsFirst
-
compareNullsLast
-
compare
-
compareNullsFirst
public static int compareNullsFirst(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) -
compareNullsLast
public static int compareNullsLast(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) -
compareNullsLast
-
compareNullsLastForMergeJoin
-
compareNullsLastForMergeJoin
public static int compareNullsLastForMergeJoin(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) -
patternBuilder
Creates a pattern builder. -
generateCollator
-
Objects.equals(java.lang.Object, java.lang.Object).