Class BucketFunction.BucketString

  • All Implemented Interfaces:
    java.io.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<java.lang.Integer>
    Enclosing class:
    BucketFunction

    public static class BucketFunction.BucketString
    extends BucketFunction.BucketBase
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunction

        MAGIC_METHOD_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      BucketString()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String canonicalName()  
      static int hash​(java.lang.String value)  
      org.apache.spark.sql.types.DataType[] inputTypes()  
      static java.lang.Integer invoke​(int numBuckets, org.apache.spark.unsafe.types.UTF8String value)  
      java.lang.Integer produceResult​(org.apache.spark.sql.catalyst.InternalRow input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.spark.sql.connector.catalog.functions.BoundFunction

        isDeterministic, isResultNullable
    • Constructor Detail

      • BucketString

        public BucketString()
    • Method Detail

      • invoke

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

        public static int hash​(java.lang.String value)
      • inputTypes

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

        public java.lang.String canonicalName()
      • produceResult

        public java.lang.Integer produceResult​(org.apache.spark.sql.catalyst.InternalRow input)