public class MaterializedCollectBatchResult<C> extends BasicResult<C> implements MaterializedResult<C>
clusterId, webInterfaceUrl| Constructor and Description |
|---|
MaterializedCollectBatchResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.java.typeutils.RowTypeInfo outputType,
org.apache.flink.api.common.ExecutionConfig config) |
| 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.
|
boolean |
isMaterialized()
Returns whether this result is materialized such that snapshots can be taken or results
must be retrieved record-wise.
|
List<org.apache.flink.types.Row> |
retrievePage(int page)
Retrieves a page of a snapshotted result.
|
TypedResult<Integer> |
snapshot(int pageSize)
Takes a snapshot of the current table and returns the number of pages for navigating
through the snapshot.
|
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, waitsetClusterInformationpublic MaterializedCollectBatchResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.java.typeutils.RowTypeInfo outputType,
org.apache.flink.api.common.ExecutionConfig config)
public boolean isMaterialized()
DynamicResultisMaterialized in interface DynamicResult<C>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>public List<org.apache.flink.types.Row> retrievePage(int page)
MaterializedResultretrievePage in interface MaterializedResult<C>public TypedResult<Integer> snapshot(int pageSize)
MaterializedResultsnapshot in interface MaterializedResult<C>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.