Class BucketFunction.BucketDecimal
- java.lang.Object
-
- org.apache.iceberg.spark.functions.BucketFunction.BucketBase
-
- org.apache.iceberg.spark.functions.BucketFunction.BucketDecimal
-
- 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.BucketDecimal extends BucketFunction.BucketBase
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BucketDecimal(org.apache.spark.sql.types.DataType sqlType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcanonicalName()static inthash(java.math.BigDecimal value)org.apache.spark.sql.types.DataType[]inputTypes()static java.lang.Integerinvoke(int numBuckets, org.apache.spark.sql.types.Decimal value)java.lang.IntegerproduceResult(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 java.lang.Integer invoke(int numBuckets, org.apache.spark.sql.types.Decimal value)
-
hash
public static int hash(java.math.BigDecimal value)
-
inputTypes
public org.apache.spark.sql.types.DataType[] inputTypes()
-
produceResult
public java.lang.Integer produceResult(org.apache.spark.sql.catalyst.InternalRow input)
-
canonicalName
public java.lang.String canonicalName()
-
-