public class PhysicalFile extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PhysicalFile.PhysicalFileCreator
Functional interface to create the physical file.
|
static interface |
PhysicalFile.PhysicalFileDeleter
Functional interface to delete the physical file.
|
| Constructor and Description |
|---|
PhysicalFile(org.apache.flink.core.fs.FSDataOutputStream outputStream,
org.apache.flink.core.fs.Path filePath,
PhysicalFile.PhysicalFileDeleter deleter,
CheckpointedStateScope scope) |
PhysicalFile(org.apache.flink.core.fs.FSDataOutputStream outputStream,
org.apache.flink.core.fs.Path filePath,
PhysicalFile.PhysicalFileDeleter deleter,
CheckpointedStateScope scope,
boolean owned) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
closed() |
void |
deleteIfNecessary()
Delete this physical file if there is no reference count from logical files (all discarded),
and this physical file is closed (no further writing on it).
|
boolean |
equals(Object o) |
org.apache.flink.core.fs.Path |
getFilePath() |
org.apache.flink.core.fs.FSDataOutputStream |
getOutputStream() |
CheckpointedStateScope |
getScope() |
boolean |
isDeleted() |
boolean |
isOpen() |
boolean |
isOwned() |
String |
toString() |
public PhysicalFile(@Nullable org.apache.flink.core.fs.FSDataOutputStream outputStream, org.apache.flink.core.fs.Path filePath, @Nullable PhysicalFile.PhysicalFileDeleter deleter, CheckpointedStateScope scope)
public PhysicalFile(@Nullable org.apache.flink.core.fs.FSDataOutputStream outputStream, org.apache.flink.core.fs.Path filePath, @Nullable PhysicalFile.PhysicalFileDeleter deleter, CheckpointedStateScope scope, boolean owned)
@Nullable public org.apache.flink.core.fs.FSDataOutputStream getOutputStream()
public void deleteIfNecessary()
throws IOException
IOException - if anything goes wrong with file system.public boolean closed()
public void close()
throws IOException
IOExceptionpublic boolean isOpen()
public boolean isDeleted()
public org.apache.flink.core.fs.Path getFilePath()
public CheckpointedStateScope getScope()
public boolean isOwned()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.