Class BucketFunction.BucketInt
- java.lang.Object
-
- org.apache.iceberg.spark.functions.BucketFunction.BucketBase
-
- org.apache.iceberg.spark.functions.BucketFunction.BucketInt
-
- 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.BucketInt extends BucketFunction.BucketBase
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BucketInt(org.apache.spark.sql.types.DataType sqlType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
canonicalName()
boolean
equals(java.lang.Object other)
static int
hash(int value)
int
hashCode()
org.apache.spark.sql.types.DataType[]
inputTypes()
static int
invoke(int numBuckets, int value)
java.lang.Integer
produceResult(org.apache.spark.sql.catalyst.InternalRow input)
-
Methods inherited from class org.apache.iceberg.spark.functions.BucketFunction.BucketBase
apply, name, resultType
-
-
-
-
Method Detail
-
invoke
public static int invoke(int numBuckets, int value)
-
hash
public static int hash(int 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)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-