Class BucketFunction.BucketBase
java.lang.Object
org.apache.iceberg.spark.functions.BucketFunction.BucketBase
- 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.ReducibleFunction<Integer,,- Integer> - org.apache.spark.sql.connector.catalog.functions.ScalarFunction<Integer>
- Direct Known Subclasses:
- BucketFunction.BucketBinary,- BucketFunction.BucketDecimal,- BucketFunction.BucketInt,- BucketFunction.BucketLong,- BucketFunction.BucketString
- Enclosing class:
- BucketFunction
public abstract static class BucketFunction.BucketBase
extends Object
implements org.apache.spark.sql.connector.catalog.functions.ReducibleFunction<Integer,Integer> 
- See Also:
- 
Field SummaryFields inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunctionMAGIC_METHOD_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intapply(int numBuckets, int hashedValue) booleanprotected intgcd(int num1, int num2) inthashCode()name()reducer(int thisNumBuckets, org.apache.spark.sql.connector.catalog.functions.ReducibleFunction<?, ?> otherBucketFunction, int otherNumBuckets) org.apache.spark.sql.types.DataTypeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.catalog.functions.BoundFunctioncanonicalName, inputTypes, isDeterministic, isResultNullableMethods inherited from interface org.apache.spark.sql.connector.catalog.functions.ReducibleFunctionreducerMethods inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunctionproduceResult
- 
Constructor Details- 
BucketBasepublic BucketBase()
 
- 
- 
Method Details- 
applypublic static int apply(int numBuckets, int hashedValue) 
- 
name- Specified by:
- namein interface- org.apache.spark.sql.connector.catalog.functions.Function
 
- 
resultTypepublic org.apache.spark.sql.types.DataType resultType()- Specified by:
- resultTypein interface- org.apache.spark.sql.connector.catalog.functions.BoundFunction
 
- 
gcdprotected int gcd(int num1, int num2) 
- 
reducer
- 
hashCodepublic int hashCode()
- 
equals
 
-