T
- The result type of the provided expression.DynamicTableSource
. Use the concept of computed columns instead. See FLIP-95 for more
information.@Deprecated @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.Modifier and Type | Method and Description |
---|---|
String[] |
getArgumentFields()
Deprecated.
Returns the names of all fields that the expression of the field computer accesses.
|
Expression |
getExpression(ResolvedFieldReference[] fieldAccesses)
Deprecated.
Returns the
Expression that computes the value of the field. |
TypeInformation<T> |
getReturnType()
Deprecated.
Returns the result type of the expression.
|
void |
validateArgumentFields(TypeInformation<?>[] argumentFieldTypes)
Deprecated.
Validates that the fields that the expression references have the correct types.
|
String[] getArgumentFields()
TypeInformation<T> getReturnType()
void validateArgumentFields(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–2024 The Apache Software Foundation. All rights reserved.