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.TemporalTableFunction
Class representing temporal table function over some history table. It takes one single argument,
the
timeAttribute, for which it returns matching version of the
underlyingHistoryTable, from which this TemporalTableFunction was 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:
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.table.functions.TemporalTableFunctioncreate(QueryOperation operationTree, org.apache.flink.table.expressions.Expression timeAttribute, org.apache.flink.table.expressions.Expression primaryKey) voidorg.apache.flink.table.expressions.Expressionorg.apache.flink.api.java.typeutils.RowTypeInfoorg.apache.flink.table.expressions.Expressionorg.apache.flink.table.types.inference.TypeInferencegetTypeInference(org.apache.flink.table.catalog.DataTypeFactory typeFactory) Methods inherited from class org.apache.flink.table.functions.TableFunction
collect, finish, getKind, getParameterTypes, setCollectorMethods inherited from class org.apache.flink.table.functions.UserDefinedFunction
close, functionIdentifier, open, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.functions.FunctionDefinition
getRequirements, isDeterministic, supportsConstantFolding
-
Method Details
-
eval
-
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
-
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)
-