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.ScalarFunction<Integer>
- Enclosing class:
- BucketFunction
- See Also:
-
Field Summary
Fields inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunction
MAGIC_METHOD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static int
hash
(long value) int
hashCode()
org.apache.spark.sql.types.DataType[]
static int
invoke
(int numBuckets, long value) produceResult
(org.apache.spark.sql.catalyst.InternalRow input) Methods inherited from class org.apache.iceberg.spark.functions.BucketFunction.BucketBase
apply, name, resultType
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.spark.sql.connector.catalog.functions.BoundFunction
isDeterministic, isResultNullable
-
Constructor Details
-
BucketLong
public BucketLong(org.apache.spark.sql.types.DataType sqlType)
-
-
Method Details
-
invoke
public static int invoke(int numBuckets, long value) -
hash
public static int hash(long value) -
inputTypes
public org.apache.spark.sql.types.DataType[] inputTypes() -
canonicalName
-
produceResult
-
hashCode
public int hashCode() -
equals
-