| 程序包 | 说明 |
|---|---|
| org.apache.flink.connector.file.src | |
| org.apache.flink.connector.file.src.reader |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<CheckpointedPosition> |
FileSourceSplit.getReaderPosition()
Gets the (checkpointed) position of the reader, if set.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FileSourceSplitState.setPosition(CheckpointedPosition position) |
FileSourceSplit |
FileSourceSplit.updateWithCheckpointedPosition(CheckpointedPosition position)
Creates a copy of this split where the checkpointed position is replaced by the given new
position.
|
| 构造器和说明 |
|---|
FileSourceSplit(String id,
org.apache.flink.core.fs.Path filePath,
long offset,
long length,
long fileModificationTime,
long fileSize,
String[] hostnames,
CheckpointedPosition readerPosition)
Constructs a split with host information.
|
FileSourceSplit(String id,
org.apache.flink.core.fs.Path filePath,
long offset,
long length,
String[] hostnames,
CheckpointedPosition readerPosition)
|
| 限定符和类型 | 方法和说明 |
|---|---|
default CheckpointedPosition |
FileRecordFormat.Reader.getCheckpointedPosition()
Optionally returns the current position of the reader.
|
default CheckpointedPosition |
StreamFormat.Reader.getCheckpointedPosition()
Optionally returns the current position of the reader.
|
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.