Class TableFunctionCollector<T>
java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.table.runtime.collector.TableFunctionCollector<T>
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,org.apache.flink.util.Collector<T>
- Direct Known Subclasses:
ListenableCollector
public abstract class TableFunctionCollector<T>
extends org.apache.flink.api.common.functions.AbstractRichFunction
implements org.apache.flink.util.Collector<T>
The basic implementation of collector for
TableFunction.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getInput()Gets the input value from left table, which will be used to cross join with the result of table function.booleanWhetherCollector.collect(Object)has been called.voidoutputResult(Object result) Output final result of this UDTF to downstreams.voidreset()Resets the flag to indicate whether [[collect(T)]] has been called.voidsetCollector(org.apache.flink.util.Collector<?> collector) Sets the current collector, which used to emit the final row.voidSets the input row from left table, which will be used to cross join with the result of table function.Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.Collector
collect
-
Constructor Details
-
TableFunctionCollector
public TableFunctionCollector()
-
-
Method Details
-
setInput
Sets the input row from left table, which will be used to cross join with the result of table function. -
getInput
Gets the input value from left table, which will be used to cross join with the result of table function. -
setCollector
public void setCollector(org.apache.flink.util.Collector<?> collector) Sets the current collector, which used to emit the final row. -
reset
public void reset()Resets the flag to indicate whether [[collect(T)]] has been called. -
outputResult
Output final result of this UDTF to downstreams. -
isCollected
public boolean isCollected()WhetherCollector.collect(Object)has been called.- Returns:
- True if
Collector.collect(Object)has been called.
-
close
public void close()- Specified by:
closein interfaceorg.apache.flink.util.Collector<T>- Specified by:
closein interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
closein classorg.apache.flink.api.common.functions.AbstractRichFunction
-