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>
| 构造器和说明 |
|---|
KeyedStateInputFormat(org.apache.flink.runtime.checkpoint.OperatorState operatorState,
org.apache.flink.runtime.state.StateBackend stateBackend,
StateReaderOperator<?,K,N,OUT> operator)
Creates an input format for reading partitioned state from an operator in a savepoint.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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,
StateReaderOperator<?,K,N,OUT> operator)
operatorState - The state to be queried.stateBackend - The state backed used to snapshot the operator.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 在类中 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–2020 The Apache Software Foundation. All rights reserved.