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.Modifier and Type | Method and Description |
---|---|
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. |
TypeInformation<T> |
getReturnType()
Returns the result type of the expression.
|
void |
validateArgumentFields(TypeInformation<?>[] argumentFieldTypes)
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–2021 The Apache Software Foundation. All rights reserved.