Class CollectResultBase
java.lang.Object
org.apache.flink.table.client.gateway.result.CollectResultBase
- All Implemented Interfaces:
DynamicResult
- Direct Known Subclasses:
ChangelogCollectResult,MaterializedCollectResultBase
A result that works through
TableResult.collect().-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThread to retrieve data from theCloseableIteratorand process. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AtomicReference<SqlExecutionException>protected final Objectprotected final CollectResultBase.ResultRetrievalThread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the retrieval and all involved threads.protected <T> TypedResult<T>protected booleanprotected abstract voidprocessRecord(org.apache.flink.table.data.RowData row)
-
Field Details
-
resultLock
-
executionException
-
retrievalThread
-
-
Constructor Details
-
CollectResultBase
-
-
Method Details
-
close
public void close()Description copied from interface:DynamicResultCloses the retrieval and all involved threads.- Specified by:
closein interfaceDynamicResult
-
handleMissingResult
-
processRecord
protected abstract void processRecord(org.apache.flink.table.data.RowData row) -
isRetrieving
protected boolean isRetrieving()
-