public class ReplicateRows extends TableFunction<Row>
collector
Constructor and Description |
---|
ReplicateRows(TypeInformation[] fieldTypes) |
Modifier and Type | Method and Description |
---|---|
void |
eval(Object... inputs) |
TypeInformation<?>[] |
getParameterTypes(Class<?>[] signature)
Returns
TypeInformation about the operands of the evaluation method with a given
signature. |
TypeInformation<Row> |
getResultType()
Returns the result type of the evaluation method with a given signature.
|
collect, getKind, setCollector
close, functionIdentifier, open, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic
public ReplicateRows(TypeInformation[] fieldTypes)
public void eval(Object... inputs)
public TypeInformation<Row> getResultType()
TableFunction
This method needs to be overridden in case Flink's type extraction facilities are not
sufficient to extract the TypeInformation
based on the return type of the evaluation
method. Flink's type extraction facilities can handle basic types or
simple POJOs but might be wrong for more complex, custom, or composite types.
getResultType
in class TableFunction<Row>
TypeInformation
of result type or null
if Flink should determine the typepublic TypeInformation<?>[] getParameterTypes(Class<?>[] signature)
TableFunction
TypeInformation
about the operands of the evaluation method with a given
signature.
In order to perform operand type inference in SQL (especially when NULL is used) it might be
necessary to determine the parameter TypeInformation
of an evaluation method.
By default Flink's type extraction facilities are used for this but might be wrong for
more complex, custom, or composite types.
getParameterTypes
in class TableFunction<Row>
signature
- signature of the method the operand types need to be determinedTypeInformation
of operand typesCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.