Class MonthsFunction.DateToMonthsFunction
java.lang.Object
org.apache.iceberg.spark.functions.MonthsFunction.DateToMonthsFunction
- 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<Integer>
- Enclosing class:
- MonthsFunction
- See Also:
-
Field Summary
Fields inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunction
MAGIC_METHOD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()org.apache.spark.sql.types.DataType[]static intinvoke(int days) name()produceResult(org.apache.spark.sql.catalyst.InternalRow input) org.apache.spark.sql.types.DataTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.catalog.functions.BoundFunction
isDeterministic, isResultNullable
-
Constructor Details
-
DateToMonthsFunction
public DateToMonthsFunction()
-
-
Method Details
-
invoke
public static int invoke(int days) -
inputTypes
public org.apache.spark.sql.types.DataType[] inputTypes() -
canonicalName
-
produceResult
-
name
-
resultType
public org.apache.spark.sql.types.DataType resultType() -
hashCode
public int hashCode() -
equals
-