Package org.apache.flink.table.functions
Class TemporalTableFunctionImpl
- java.lang.Object
-
- org.apache.flink.table.functions.UserDefinedFunction
-
- org.apache.flink.table.functions.TableFunction<org.apache.flink.types.Row>
-
- org.apache.flink.table.functions.TemporalTableFunction
-
- org.apache.flink.table.functions.TemporalTableFunctionImpl
-
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
@Internal public final class TemporalTableFunctionImpl extends org.apache.flink.table.functions.TemporalTableFunctionClass representing temporal table function over some history table. It takes one single argument, thetimeAttribute, for which it returns matching version of theunderlyingHistoryTable, from which thisTemporalTableFunctionwas created.This function shouldn't be evaluated. Instead calls to it should be rewritten by the optimiser into other operators (like Temporal Table Join).
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.flink.table.functions.TemporalTableFunctioncreate(QueryOperation operationTree, org.apache.flink.table.expressions.Expression timeAttribute, org.apache.flink.table.expressions.Expression primaryKey)voideval(Timestamp t)org.apache.flink.table.expressions.ExpressiongetPrimaryKey()org.apache.flink.api.java.typeutils.RowTypeInfogetResultType()org.apache.flink.table.expressions.ExpressiongetTimeAttribute()org.apache.flink.table.types.inference.TypeInferencegetTypeInference(org.apache.flink.table.catalog.DataTypeFactory typeFactory)QueryOperationgetUnderlyingHistoryTable()-
Methods inherited from class org.apache.flink.table.functions.TableFunction
collect, finish, getKind, getParameterTypes, setCollector
-
Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction
close, functionIdentifier, open, toString
-
-
-
-
Method Detail
-
eval
public void eval(Timestamp t)
-
getTimeAttribute
public org.apache.flink.table.expressions.Expression getTimeAttribute()
-
getPrimaryKey
public org.apache.flink.table.expressions.Expression getPrimaryKey()
-
getTypeInference
public org.apache.flink.table.types.inference.TypeInference getTypeInference(org.apache.flink.table.catalog.DataTypeFactory typeFactory)
- Specified by:
getTypeInferencein interfaceorg.apache.flink.table.functions.FunctionDefinition- Overrides:
getTypeInferencein classorg.apache.flink.table.functions.TableFunction<org.apache.flink.types.Row>
-
getResultType
public org.apache.flink.api.java.typeutils.RowTypeInfo getResultType()
- Overrides:
getResultTypein classorg.apache.flink.table.functions.TableFunction<org.apache.flink.types.Row>
-
getUnderlyingHistoryTable
public QueryOperation getUnderlyingHistoryTable()
-
create
public static org.apache.flink.table.functions.TemporalTableFunction create(QueryOperation operationTree, org.apache.flink.table.expressions.Expression timeAttribute, org.apache.flink.table.expressions.Expression primaryKey)
-
-