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 SqlExecutionException |
executionException |
protected Object |
resultLock |
clusterId, webInterfaceUrl| Constructor and Description |
|---|
CollectStreamResult(org.apache.flink.api.java.typeutils.RowTypeInfo outputType,
org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the retrieval and all involved threads.
|
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getOutputType()
Returns the output type as defined by the query.
|
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(ProgramDeployer<C> deployer)
Starts the table program using the given deployer and monitors it's execution.
|
getClusterId, getWebInterfaceUrl, setClusterInformationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMaterializedsetClusterInformationprotected final Object resultLock
protected SqlExecutionException executionException
public CollectStreamResult(org.apache.flink.api.java.typeutils.RowTypeInfo outputType,
org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort)
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getOutputType()
DynamicResultgetOutputType in interface DynamicResult<C>public void startRetrieval(ProgramDeployer<C> deployer)
DynamicResultstartRetrieval in interface DynamicResult<C>public org.apache.flink.table.sinks.TableSink<?> getTableSink()
DynamicResultgetTableSink in interface DynamicResult<C>public void close()
DynamicResultclose in interface 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.