C - cluster id to which this result belongs topublic class MaterializedCollectStreamResult<C> extends CollectStreamResult<C> implements MaterializedResult<C>
| Modifier and Type | Field and Description |
|---|---|
static double |
MATERIALIZED_TABLE_CAPACITY_FACTOR
Factor for the initial capacity of the materialized table.
|
static int |
MATERIALIZED_TABLE_MAX_INITIAL_CAPACITY
Maximum initial capacity of the materialized table.
|
static int |
MATERIALIZED_TABLE_MAX_OVERCOMMIT
Maximum overcommitment of the materialized table.
|
static double |
MATERIALIZED_TABLE_OVERCOMMIT_FACTOR
Factor for cleaning up deleted rows in the materialized table.
|
executionException, resultLockclusterId, webInterfaceUrl| Constructor and Description |
|---|
MaterializedCollectStreamResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort,
int maxRowCount) |
MaterializedCollectStreamResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort,
int maxRowCount,
int overcommitThreshold) |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.apache.flink.types.Row> |
getMaterializedTable() |
boolean |
isMaterialized()
Returns whether this result is materialized such that snapshots can be taken or results must
be retrieved record-wise.
|
protected void |
processRecord(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> change) |
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.
|
close, getTableSink, handleMissingResult, isRetrieving, startRetrievalgetClusterId, getWebInterfaceUrl, setClusterInformationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getTableSink, startRetrievalsetClusterInformationpublic static final int MATERIALIZED_TABLE_MAX_INITIAL_CAPACITY
public static final int MATERIALIZED_TABLE_MAX_OVERCOMMIT
public static final double MATERIALIZED_TABLE_CAPACITY_FACTOR
public static final double MATERIALIZED_TABLE_OVERCOMMIT_FACTOR
@VisibleForTesting
public MaterializedCollectStreamResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort,
int maxRowCount,
int overcommitThreshold)
public MaterializedCollectStreamResult(org.apache.flink.table.api.TableSchema tableSchema,
org.apache.flink.api.common.ExecutionConfig config,
InetAddress gatewayAddress,
int gatewayPort,
int maxRowCount)
public boolean isMaterialized()
DynamicResultisMaterialized in interface DynamicResult<C>public TypedResult<Integer> snapshot(int pageSize)
MaterializedResultsnapshot in interface MaterializedResult<C>public List<org.apache.flink.types.Row> retrievePage(int page)
MaterializedResultretrievePage in interface MaterializedResult<C>protected void processRecord(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> change)
processRecord in class CollectStreamResult<C>@VisibleForTesting protected List<org.apache.flink.types.Row> getMaterializedTable()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.