Class BucketFunction.BucketLong
java.lang.Object
org.apache.iceberg.spark.functions.BucketFunction.BucketBase
org.apache.iceberg.spark.functions.BucketFunction.BucketLong
- 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.ReducibleFunction<Integer,,- Integer> - org.apache.spark.sql.connector.catalog.functions.ScalarFunction<Integer>
- Enclosing class:
- BucketFunction
- See Also:
- 
Field SummaryFields inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunctionMAGIC_METHOD_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic inthash(long value) inthashCode()org.apache.spark.sql.types.DataType[]static intinvoke(int numBuckets, long value) produceResult(org.apache.spark.sql.catalyst.InternalRow input) Methods inherited from class org.apache.iceberg.spark.functions.BucketFunction.BucketBaseapply, gcd, name, reducer, resultTypeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.catalog.functions.BoundFunctionisDeterministic, isResultNullableMethods inherited from interface org.apache.spark.sql.connector.catalog.functions.ReducibleFunctionreducer
- 
Constructor Details- 
BucketLongpublic BucketLong(org.apache.spark.sql.types.DataType sqlType) 
 
- 
- 
Method Details- 
invokepublic static int invoke(int numBuckets, long value) 
- 
hashpublic static int hash(long value) 
- 
inputTypespublic org.apache.spark.sql.types.DataType[] inputTypes()
- 
canonicalName
- 
produceResult
- 
hashCodepublic int hashCode()
- 
equals
 
-