C - cluster id to which this result belongs topublic abstract class CollectStreamResult<C> extends BasicResult<C> implements DynamicResult<C>
DataStreamUtils.collect(DataStream).| 限定符和类型 | 字段和说明 |
|---|---|
protected AtomicReference<SqlExecutionException> |
executionException |
protected Object |
resultLock |
clusterId, webInterfaceUrl| 构造器和说明 |
|---|
CollectStreamResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort,
ClassLoader classLoader) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes the retrieval and all involved threads.
|
org.apache.flink.table.sinks.TableSink<?> |
getTableSink()
Returns the table sink required by this result type.
|
protected <T> TypedResult<T> |
handleMissingResult() |
protected boolean |
isRetrieving() |
protected abstract void |
processRecord(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> change) |
void |
startRetrieval(org.apache.flink.core.execution.JobClient jobClient)
Starts retrieving the result using the given
JobClient and monitors it's execution. |
getClusterId, getWebInterfaceUrl, setClusterInformationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMaterializedsetClusterInformationprotected final Object resultLock
protected AtomicReference<SqlExecutionException> executionException
public CollectStreamResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort,
ClassLoader classLoader)
public void startRetrieval(org.apache.flink.core.execution.JobClient jobClient)
DynamicResultJobClient and monitors it's execution.startRetrieval 在接口中 DynamicResult<C>public org.apache.flink.table.sinks.TableSink<?> getTableSink()
DynamicResultgetTableSink 在接口中 DynamicResult<C>public void close()
DynamicResultclose 在接口中 DynamicResult<C>protected <T> TypedResult<T> handleMissingResult()
protected boolean isRetrieving()
protected abstract void processRecord(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> change)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.