Class HoursFunction.TimestampNtzToHoursFunction
- java.lang.Object
-
- org.apache.iceberg.spark.functions.HoursFunction.TimestampNtzToHoursFunction
-
- 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<java.lang.Integer>
- Enclosing class:
- HoursFunction
public static class HoursFunction.TimestampNtzToHoursFunction extends java.lang.Object implements org.apache.spark.sql.connector.catalog.functions.ScalarFunction<java.lang.Integer>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimestampNtzToHoursFunction()
-
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 int
invoke(long micros)
java.lang.String
name()
java.lang.Integer
produceResult(org.apache.spark.sql.catalyst.InternalRow input)
org.apache.spark.sql.types.DataType
resultType()
-
-
-
Method Detail
-
invoke
public static int invoke(long micros)
-
name
public java.lang.String name()
- Specified by:
name
in interfaceorg.apache.spark.sql.connector.catalog.functions.Function
-
inputTypes
public org.apache.spark.sql.types.DataType[] inputTypes()
- Specified by:
inputTypes
in interfaceorg.apache.spark.sql.connector.catalog.functions.BoundFunction
-
resultType
public org.apache.spark.sql.types.DataType resultType()
- Specified by:
resultType
in interfaceorg.apache.spark.sql.connector.catalog.functions.BoundFunction
-
canonicalName
public java.lang.String canonicalName()
- Specified by:
canonicalName
in interfaceorg.apache.spark.sql.connector.catalog.functions.BoundFunction
-
produceResult
public java.lang.Integer produceResult(org.apache.spark.sql.catalyst.InternalRow input)
- Specified by:
produceResult
in interfaceorg.apache.spark.sql.connector.catalog.functions.ScalarFunction<java.lang.Integer>
-
-