C
- cluster id to which this result belongs topublic abstract class CollectStreamResult<C> extends BasicResult<C> implements DynamicResult<C>
DataStreamUtils.collect(DataStream)
.Modifier and Type | Field and Description |
---|---|
protected AtomicReference<SqlExecutionException> |
executionException |
protected Object |
resultLock |
clusterId, webInterfaceUrl
Constructor and Description |
---|
CollectStreamResult(TableSchema tableSchema,
ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the retrieval and all involved threads.
|
TableSink<?> |
getTableSink()
Returns the table sink required by this result type.
|
protected <T> TypedResult<T> |
handleMissingResult() |
protected boolean |
isRetrieving() |
protected abstract void |
processRecord(Tuple2<Boolean,Row> change) |
void |
startRetrieval(JobClient jobClient)
Starts retrieving the result using the given
JobClient and monitors it's execution. |
getClusterId, getWebInterfaceUrl, setClusterInformation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMaterialized
setClusterInformation
protected final Object resultLock
protected AtomicReference<SqlExecutionException> executionException
public CollectStreamResult(TableSchema tableSchema, ExecutionConfig config, InetAddress gatewayAddress, int gatewayPort, ClassLoader classLoader)
public void startRetrieval(JobClient jobClient)
DynamicResult
JobClient
and monitors it's execution.startRetrieval
in interface DynamicResult<C>
public TableSink<?> getTableSink()
DynamicResult
getTableSink
in interface DynamicResult<C>
public void close()
DynamicResult
close
in interface DynamicResult<C>
protected <T> TypedResult<T> handleMissingResult()
protected boolean isRetrieving()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.