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 SummaryConstructors Constructor Description BucketInt(org.apache.spark.sql.types.DataType sqlType)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcanonicalName()static inthash(int value)org.apache.spark.sql.types.DataType[]inputTypes()static intinvoke(int numBuckets, int value)java.lang.IntegerproduceResult(org.apache.spark.sql.catalyst.InternalRow input)- 
Methods inherited from class org.apache.iceberg.spark.functions.BucketFunction.BucketBaseapply, name, resultType
 
- 
 
- 
- 
- 
Method Detail- 
invokepublic static int invoke(int numBuckets, int value)
 - 
hashpublic static int hash(int value) 
 - 
inputTypespublic org.apache.spark.sql.types.DataType[] inputTypes() 
 - 
canonicalNamepublic java.lang.String canonicalName() 
 - 
produceResultpublic java.lang.Integer produceResult(org.apache.spark.sql.catalyst.InternalRow input) 
 
- 
 
-