public class LogicalFile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LogicalFile.LogicalFileId
ID for
LogicalFile . |
Constructor and Description |
---|
LogicalFile(LogicalFile.LogicalFileId fileId,
PhysicalFile physicalFile,
int startOffset,
int length,
FileMergingSnapshotManager.SubtaskKey subtaskKey) |
Modifier and Type | Method and Description |
---|---|
void |
advanceLastCheckpointId(long checkpointId)
A logical file may share across checkpoints (especially for shared state).
|
void |
discardWithCheckpointId(long checkpointId)
When a checkpoint that uses this logical file is subsumed or aborted, discard this logical
file.
|
boolean |
equals(Object o) |
LogicalFile.LogicalFileId |
getFileId() |
long |
getLastUsedCheckpointID() |
int |
getLength() |
PhysicalFile |
getPhysicalFile() |
int |
getStartOffset() |
FileMergingSnapshotManager.SubtaskKey |
getSubtaskKey() |
int |
hashCode() |
boolean |
isDiscarded() |
public LogicalFile(LogicalFile.LogicalFileId fileId, @Nonnull PhysicalFile physicalFile, int startOffset, int length, @Nonnull FileMergingSnapshotManager.SubtaskKey subtaskKey)
public LogicalFile.LogicalFileId getFileId()
public void advanceLastCheckpointId(long checkpointId)
checkpointId
- the checkpoint that uses this logical file.public void discardWithCheckpointId(long checkpointId) throws IOException
checkpointId
- the checkpoint that is notified subsumed or aborted.IOException
- if anything goes wrong with file system.public long getLastUsedCheckpointID()
@Nonnull public PhysicalFile getPhysicalFile()
public int getStartOffset()
public int getLength()
@Nonnull public FileMergingSnapshotManager.SubtaskKey getSubtaskKey()
@VisibleForTesting public boolean isDiscarded()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.