Class Utilities

java.lang.Object
org.apache.calcite.runtime.Utilities

public class Utilities extends Object
Utility methods called by generated code.
  • Constructor Details

    • Utilities

      protected Utilities()
  • Method Details

    • equal

      @Deprecated public static boolean equal(@Nullable Object o0, @Nullable Object o1)
    • hash

      public static int hash(@Nullable Object v)
    • hashCode

      @Deprecated public static int hashCode(double v)
      Deprecated.
      Computes the hash code of a double value. Equivalent to Double.hashCode(double), but that method was only introduced in JDK 1.8.
      Parameters:
      v - Value
      Returns:
      Hash code
    • hashCode

      @Deprecated public static int hashCode(float v)
      Deprecated.
      Computes the hash code of a float value. Equivalent to Float.hashCode(float), but that method was only introduced in JDK 1.8.
      Parameters:
      v - Value
      Returns:
      Hash code
    • hashCode

      @Deprecated public static int hashCode(long v)
      Deprecated.
      Computes the hash code of a long value. Equivalent to Long.hashCode(long), but that method was only introduced in JDK 1.8.
      Parameters:
      v - Value
      Returns:
      Hash code
    • hashCode

      @Deprecated public static int hashCode(boolean v)
      Deprecated.
      Computes the hash code of a boolean value. Equivalent to Boolean.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

      public static int hash(int h, @Nullable Object v)
    • 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

      public static int compare(List v0, List v1)
    • compare

      public static int compare(Comparable v0, Comparable v1)
    • compareNullsFirst

      public static int compareNullsFirst(@Nullable Comparable v0, @Nullable Comparable v1)
    • compareNullsLast

      public static int compareNullsLast(@Nullable Comparable v0, @Nullable Comparable v1)
    • compare

      public static int compare(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator)
    • 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

      public static int compareNullsLast(List v0, List v1)
    • compareNullsLastForMergeJoin

      public static int compareNullsLastForMergeJoin(@Nullable Comparable v0, @Nullable Comparable v1)
    • compareNullsLastForMergeJoin

      public static int compareNullsLastForMergeJoin(@Nullable Comparable v0, @Nullable Comparable v1, Comparator comparator)
    • patternBuilder

      public static Pattern.PatternBuilder patternBuilder()
      Creates a pattern builder.
    • generateCollator

      public static Collator generateCollator(Locale locale, int strength)