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:
- 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:
- 
Field SummaryFields inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunctionMAGIC_METHOD_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleaninthashCode()org.apache.spark.sql.types.DataType[]static org.apache.spark.sql.types.Decimalinvoke(int width, org.apache.spark.sql.types.Decimal value) org.apache.spark.sql.types.DecimalproduceResult(org.apache.spark.sql.catalyst.InternalRow input) org.apache.spark.sql.types.DataTypeMethods inherited from class org.apache.iceberg.spark.functions.TruncateFunction.TruncateBasenameMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.catalog.functions.BoundFunctionisDeterministic, isResultNullable
- 
Constructor Details- 
TruncateDecimalpublic TruncateDecimal(int precision, int scale) 
 
- 
- 
Method Details- 
invokepublic static org.apache.spark.sql.types.Decimal invoke(int width, org.apache.spark.sql.types.Decimal value) 
- 
inputTypespublic org.apache.spark.sql.types.DataType[] inputTypes()
- 
resultTypepublic org.apache.spark.sql.types.DataType resultType()
- 
canonicalName
- 
produceResultpublic org.apache.spark.sql.types.Decimal produceResult(org.apache.spark.sql.catalyst.InternalRow input) 
- 
hashCodepublic int hashCode()
- 
equals
 
-