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(org.apache.flink.table.api.TableResult 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.types.Row row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMaterializedprotected final Object resultLock
protected AtomicReference<SqlExecutionException> executionException
protected final CollectResultBase.ResultRetrievalThread retrievalThread
public CollectResultBase(org.apache.flink.table.api.TableResult tableResult)
public void close()
throws Exception
DynamicResultclose in interface DynamicResultExceptionprotected <T> TypedResult<T> handleMissingResult()
protected abstract void processRecord(org.apache.flink.types.Row row)
protected boolean isRetrieving()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.