C
- cluster id to which this result belongs topublic class MaterializedCollectStreamResult<C> extends CollectStreamResult<C> implements MaterializedResult<C>
executionException, resultLock
Constructor and Description |
---|
MaterializedCollectStreamResult(TypeInformation<Row> outputType,
ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMaterialized()
Returns whether this result is materialized such that snapshots can be taken or results
must be retrieved record-wise.
|
protected void |
processRecord(Tuple2<Boolean,Row> change) |
List<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.
|
close, getOutputType, getTableSink, handleMissingResult, isRetrieving, setClusterId, startRetrieval
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getOutputType, getTableSink, setClusterId, startRetrieval
public MaterializedCollectStreamResult(TypeInformation<Row> outputType, ExecutionConfig config, InetAddress gatewayAddress, int gatewayPort)
public boolean isMaterialized()
DynamicResult
isMaterialized
in interface DynamicResult<C>
public TypedResult<Integer> snapshot(int pageSize)
MaterializedResult
snapshot
in interface MaterializedResult<C>
public List<Row> retrievePage(int page)
MaterializedResult
retrievePage
in interface MaterializedResult<C>
protected void processRecord(Tuple2<Boolean,Row> change)
processRecord
in class CollectStreamResult<C>
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.