public static class BucketFunction.BucketInt extends BucketFunction.BucketBase
Constructor and Description |
---|
BucketInt(org.apache.spark.sql.types.DataType sqlType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
canonicalName() |
static int |
hash(int value) |
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) |
apply, name, resultType
public static int invoke(int numBuckets, int value)
public static int hash(int value)
public org.apache.spark.sql.types.DataType[] inputTypes()
public java.lang.String canonicalName()
public java.lang.Integer produceResult(org.apache.spark.sql.catalyst.InternalRow input)