public abstract class CollectResultBase extends Object implements DynamicResult
TableResult.collect().| Modifier and Type | Class and Description |
|---|---|
protected class |
CollectResultBase.ResultRetrievalThread
Thread to retrieve data from the
CloseableIterator and process. |
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<SqlExecutionException> |
executionException |
protected Object |
resultLock |
protected CollectResultBase.ResultRetrievalThread |
retrievalThread |
| Constructor and Description |
|---|
CollectResultBase(StatementResult tableResult) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the retrieval and all involved threads.
|
protected <T> TypedResult<T> |
handleMissingResult() |
protected boolean |
isRetrieving() |
protected abstract void |
processRecord(org.apache.flink.table.data.RowData row) |
protected final Object resultLock
protected AtomicReference<SqlExecutionException> executionException
protected final CollectResultBase.ResultRetrievalThread retrievalThread
public CollectResultBase(StatementResult tableResult)
public void close()
DynamicResultclose in interface DynamicResultprotected <T> TypedResult<T> handleMissingResult()
protected abstract void processRecord(org.apache.flink.table.data.RowData row)
protected boolean isRetrieving()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.