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 extendedInputSplit
that 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
ContinuousFileMonitoringFunction
and theContinuousFileReaderOperator
to perform continuous file processing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description long
getModificationTime()
Serializable
getSplitState()
default void
resetSplitState()
Sets the state of the split tonull
.void
setSplitState(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
FileInputFormats
that implement theCheckpointableInputFormat
interface.
-
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.
-
-