Class CollectResultBase
- java.lang.Object
-
- org.apache.flink.table.client.gateway.result.CollectResultBase
-
- All Implemented Interfaces:
DynamicResult
- Direct Known Subclasses:
ChangelogCollectResult,MaterializedCollectResultBase
public abstract class CollectResultBase extends Object implements DynamicResult
A result that works throughTableResult.collect().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classCollectResultBase.ResultRetrievalThreadThread to retrieve data from theCloseableIteratorand process.
-
Field Summary
Fields Modifier and Type Field Description protected AtomicReference<SqlExecutionException>executionExceptionprotected ObjectresultLockprotected CollectResultBase.ResultRetrievalThreadretrievalThread
-
Constructor Summary
Constructors Constructor Description CollectResultBase(StatementResult tableResult)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the retrieval and all involved threads.protected <T> TypedResult<T>handleMissingResult()protected booleanisRetrieving()protected abstract voidprocessRecord(org.apache.flink.table.data.RowData row)
-
-
-
Field Detail
-
resultLock
protected final Object resultLock
-
executionException
protected AtomicReference<SqlExecutionException> executionException
-
retrievalThread
protected final CollectResultBase.ResultRetrievalThread retrievalThread
-
-
Constructor Detail
-
CollectResultBase
public CollectResultBase(StatementResult tableResult)
-
-
Method Detail
-
close
public void close()
Description copied from interface:DynamicResultCloses the retrieval and all involved threads.- Specified by:
closein interfaceDynamicResult
-
handleMissingResult
protected <T> TypedResult<T> handleMissingResult()
-
processRecord
protected abstract void processRecord(org.apache.flink.table.data.RowData row)
-
isRetrieving
protected boolean isRetrieving()
-
-