T - The result type of the provided expression.@PublicEvolving
public interface FieldComputer<T>
FieldComputer interface returns an expression to compute the field of the table
schema of a TableSource from one or more fields of the TableSource's return type.| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
getArgumentFields()
Returns the names of all fields that the expression of the field computer accesses.
|
Expression |
getExpression(ResolvedFieldReference[] fieldAccesses)
Returns the
Expression that computes the value of the field. |
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getReturnType()
Returns the result type of the expression.
|
void |
validateArgumentFields(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] argumentFieldTypes)
Validates that the fields that the expression references have the correct types.
|
String[] getArgumentFields()
org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnType()
void validateArgumentFields(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] argumentFieldTypes)
argumentFieldTypes - The types of the physical input fields.Expression getExpression(ResolvedFieldReference[] fieldAccesses)
Expression that computes the value of the field.fieldAccesses - Field access expressions for the argument fields.TableSource return type.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.