Class BucketFunction.BucketBase
- java.lang.Object
-
- org.apache.iceberg.spark.functions.BucketFunction.BucketBase
-
- 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>
- Direct Known Subclasses:
BucketFunction.BucketBinary
,BucketFunction.BucketDecimal
,BucketFunction.BucketInt
,BucketFunction.BucketLong
,BucketFunction.BucketString
- Enclosing class:
- BucketFunction
public abstract static class BucketFunction.BucketBase extends java.lang.Object implements org.apache.spark.sql.connector.catalog.functions.ScalarFunction<java.lang.Integer>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BucketBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
apply(int numBuckets, int hashedValue)
java.lang.String
name()
org.apache.spark.sql.types.DataType
resultType()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
apply
public static int apply(int numBuckets, int hashedValue)
-
name
public java.lang.String name()
- Specified by:
name
in interfaceorg.apache.spark.sql.connector.catalog.functions.Function
-
resultType
public org.apache.spark.sql.types.DataType resultType()
- Specified by:
resultType
in interfaceorg.apache.spark.sql.connector.catalog.functions.BoundFunction
-
-