Class BucketFunction.BucketString

java.lang.Object
org.apache.iceberg.spark.functions.BucketFunction.BucketBase
org.apache.iceberg.spark.functions.BucketFunction.BucketString
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.BucketString extends BucketFunction.BucketBase
See Also:
  • Constructor Details

    • BucketString

      public BucketString()
  • Method Details

    • invoke

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

      public static int hash(String value)
    • inputTypes

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

      public String canonicalName()
    • produceResult

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

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

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