K - The type of the key.OUT - The type of the output of the KeyedStateReaderFunction.@Internal public class KeyedStateInputFormat<K,N,OUT> extends org.apache.flink.api.common.io.RichInputFormat<OUT,KeyGroupRangeInputSplit>
| Constructor and Description |
|---|
KeyedStateInputFormat(org.apache.flink.runtime.checkpoint.OperatorState operatorState,
org.apache.flink.runtime.state.StateBackend stateBackend,
org.apache.flink.configuration.Configuration configuration,
StateReaderOperator<?,K,N,OUT> operator)
Creates an input format for reading partitioned state from an operator in a savepoint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
KeyGroupRangeInputSplit[] |
createInputSplits(int minNumSplits) |
org.apache.flink.core.io.InputSplitAssigner |
getInputSplitAssigner(KeyGroupRangeInputSplit[] inputSplits) |
org.apache.flink.api.common.io.statistics.BaseStatistics |
getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStatistics) |
OUT |
nextRecord(OUT reuse) |
void |
open(KeyGroupRangeInputSplit split) |
void |
openInputFormat() |
boolean |
reachedEnd() |
public KeyedStateInputFormat(org.apache.flink.runtime.checkpoint.OperatorState operatorState,
org.apache.flink.runtime.state.StateBackend stateBackend,
org.apache.flink.configuration.Configuration configuration,
StateReaderOperator<?,K,N,OUT> operator)
operatorState - The state to be queried.stateBackend - The state backed used to snapshot the operator.configuration - The underlying Flink configuration used to configure the state backend.public void configure(org.apache.flink.configuration.Configuration parameters)
public org.apache.flink.core.io.InputSplitAssigner getInputSplitAssigner(KeyGroupRangeInputSplit[] inputSplits)
public org.apache.flink.api.common.io.statistics.BaseStatistics getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStatistics)
public KeyGroupRangeInputSplit[] createInputSplits(int minNumSplits) throws IOException
IOExceptionpublic void openInputFormat()
openInputFormat in class org.apache.flink.api.common.io.RichInputFormat<OUT,KeyGroupRangeInputSplit>public void open(KeyGroupRangeInputSplit split) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic boolean reachedEnd()
public OUT nextRecord(OUT reuse) throws IOException
IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.