Class TruncateFunction.TruncateDecimal
- java.lang.Object
-
- org.apache.iceberg.spark.functions.TruncateFunction.TruncateBase<org.apache.spark.sql.types.Decimal>
-
- org.apache.iceberg.spark.functions.TruncateFunction.TruncateDecimal
-
- 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<org.apache.spark.sql.types.Decimal>
- Enclosing class:
- TruncateFunction
public static class TruncateFunction.TruncateDecimal extends TruncateFunction.TruncateBase<org.apache.spark.sql.types.Decimal>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TruncateDecimal(int precision, int scale)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
canonicalName()
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()
-
Methods inherited from class org.apache.iceberg.spark.functions.TruncateFunction.TruncateBase
name
-
-
-
-
Method Detail
-
invoke
public static org.apache.spark.sql.types.Decimal invoke(int width, org.apache.spark.sql.types.Decimal value)
-
inputTypes
public org.apache.spark.sql.types.DataType[] inputTypes()
-
resultType
public org.apache.spark.sql.types.DataType resultType()
-
canonicalName
public java.lang.String canonicalName()
-
produceResult
public org.apache.spark.sql.types.Decimal produceResult(org.apache.spark.sql.catalyst.InternalRow input)
-
-