Package org.apache.calcite.runtime
Class Utilities
java.lang.Object
org.apache.calcite.runtime.Utilities
Utility methods called by generated code.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(boolean v0, boolean v1) static int
compare
(byte v0, byte v1) static int
compare
(char v0, char v1) static int
compare
(double v0, double v1) static int
compare
(float v0, float v1) static int
compare
(int v0, int v1) static int
compare
(long v0, long v1) static int
compare
(short v0, short v1) static int
compare
(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static int
compare
(Comparable v0, Comparable v1) static int
static int
compareNullsFirst
(@Nullable Comparable v0, @Nullable Comparable v1) static int
compareNullsFirst
(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static int
compareNullsLast
(@Nullable Comparable v0, @Nullable Comparable v1) static int
compareNullsLast
(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static int
compareNullsLast
(List v0, List v1) static int
compareNullsLastForMergeJoin
(@Nullable Comparable v0, @Nullable Comparable v1) static int
compareNullsLastForMergeJoin
(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator) static boolean
Deprecated.static Collator
generateCollator
(Locale locale, int strength) static int
hash
(int h, boolean v) static int
hash
(int h, byte v) static int
hash
(int h, char v) static int
hash
(int h, double v) static int
hash
(int h, float v) static int
hash
(int h, int v) static int
hash
(int h, long v) static int
hash
(int h, short v) static int
static int
static int
hashCode
(boolean v) Deprecated.static int
hashCode
(double v) Deprecated.static int
hashCode
(float v) Deprecated.static int
hashCode
(long v) Deprecated.static Pattern.PatternBuilder
Creates a pattern builder.
-
Constructor Details
-
Utilities
protected Utilities()
-
-
Method Details
-
equal
Deprecated. -
hash
-
hashCode
Deprecated.Computes the hash code of adouble
value. 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 afloat
value. 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 along
value. 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 aboolean
value. 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)
.