Interface TimestampedInputSplit
-
- All Superinterfaces:
Comparable<TimestampedInputSplit>,org.apache.flink.core.io.InputSplit,Serializable
- All Known Implementing Classes:
TimestampedFileInputSplit
public interface TimestampedInputSplit extends org.apache.flink.core.io.InputSplit, Comparable<TimestampedInputSplit>
An extendedInputSplitthat also includes information about:- The modification time of the file this split belongs to.
- When checkpointing, the state of the split at the moment of the checkpoint.
This class is used by the
ContinuousFileMonitoringFunctionand theContinuousFileReaderOperatorto perform continuous file processing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longgetModificationTime()SerializablegetSplitState()default voidresetSplitState()Sets the state of the split tonull.voidsetSplitState(Serializable state)Sets the state of the split.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
setSplitState
void setSplitState(Serializable state)
Sets the state of the split. This information is used when restoring from a checkpoint and allows to resume reading the underlying file from the point we left off.* This is applicable to
FileInputFormatsthat implement theCheckpointableInputFormatinterface.
-
getSplitState
Serializable getSplitState()
- Returns:
- the state of the split.
-
resetSplitState
default void resetSplitState()
Sets the state of the split tonull.
-
getModificationTime
long getModificationTime()
- Returns:
- The modification time of the file this split belongs to.
-
-