public class TimestampedFileInputSplit extends org.apache.flink.core.fs.FileInputSplit implements TimestampedInputSplit
FileInputSplit with TimestampedInputSplit.| 构造器和说明 |
|---|
TimestampedFileInputSplit(long modificationTime,
int num,
org.apache.flink.core.fs.Path file,
long start,
long length,
String[] hosts)
Creates a
TimestampedFileInputSplit based on the file modification time and the rest
of the information of the FileInputSplit, as returned by the underlying filesystem. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(TimestampedInputSplit o) |
boolean |
equals(Object o) |
long |
getModificationTime() |
Serializable |
getSplitState() |
int |
hashCode() |
void |
setSplitState(Serializable state)
Sets the state of the split.
|
String |
toString() |
resetSplitStatepublic TimestampedFileInputSplit(long modificationTime,
int num,
org.apache.flink.core.fs.Path file,
long start,
long length,
String[] hosts)
TimestampedFileInputSplit based on the file modification time and the rest
of the information of the FileInputSplit, as returned by the underlying filesystem.modificationTime - the modification file of the file this split belongs tonum - the number of this input splitfile - the file namestart - the position of the first byte in the file to processlength - the number of bytes in the file to process (-1 is flag for "read whole file")hosts - the list of hosts containing the block, possibly nullpublic void setSplitState(Serializable state)
* This is applicable to FileInputFormats that implement the CheckpointableInputFormat interface.
setSplitState 在接口中 TimestampedInputSplitpublic Serializable getSplitState()
getSplitState 在接口中 TimestampedInputSplitpublic long getModificationTime()
getModificationTime 在接口中 TimestampedInputSplitpublic int compareTo(TimestampedInputSplit o)
compareTo 在接口中 Comparable<TimestampedInputSplit>public boolean equals(Object o)
equals 在类中 org.apache.flink.core.fs.FileInputSplitpublic int hashCode()
hashCode 在类中 org.apache.flink.core.fs.FileInputSplitpublic String toString()
toString 在类中 org.apache.flink.core.fs.FileInputSplitCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.