Class BucketFunction.BucketDecimal

java.lang.Object
org.apache.iceberg.spark.functions.BucketFunction.BucketBase
org.apache.iceberg.spark.functions.BucketFunction.BucketDecimal
All Implemented Interfaces:
Serializable, org.apache.spark.sql.connector.catalog.functions.BoundFunction, org.apache.spark.sql.connector.catalog.functions.Function, org.apache.spark.sql.connector.catalog.functions.ScalarFunction<Integer>
Enclosing class:
BucketFunction

public static class BucketFunction.BucketDecimal extends BucketFunction.BucketBase
See Also:
  • Constructor Details

    • BucketDecimal

      public BucketDecimal(org.apache.spark.sql.types.DataType sqlType)
  • Method Details

    • invoke

      public static Integer invoke(int numBuckets, org.apache.spark.sql.types.Decimal value)
    • hash

      public static int hash(BigDecimal value)
    • inputTypes

      public org.apache.spark.sql.types.DataType[] inputTypes()
    • produceResult

      public Integer produceResult(org.apache.spark.sql.catalyst.InternalRow input)
    • canonicalName

      public String canonicalName()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object