public static class TruncateFunction.TruncateDecimal extends TruncateFunction.TruncateBase<org.apache.spark.sql.types.Decimal>
Constructor and Description |
---|
TruncateDecimal(int precision,
int scale) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
canonicalName() |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
org.apache.spark.sql.types.DataType[] |
inputTypes() |
static org.apache.spark.sql.types.Decimal |
invoke(int width,
org.apache.spark.sql.types.Decimal value) |
org.apache.spark.sql.types.Decimal |
produceResult(org.apache.spark.sql.catalyst.InternalRow input) |
org.apache.spark.sql.types.DataType |
resultType() |
name
public static org.apache.spark.sql.types.Decimal invoke(int width, org.apache.spark.sql.types.Decimal value)
public org.apache.spark.sql.types.DataType[] inputTypes()
public org.apache.spark.sql.types.DataType resultType()
public java.lang.String canonicalName()
public org.apache.spark.sql.types.Decimal produceResult(org.apache.spark.sql.catalyst.InternalRow input)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object