Class FileSinkCommittable
- java.lang.Object
-
- org.apache.flink.connector.file.sink.FileSinkCommittable
-
- All Implemented Interfaces:
Serializable
@Internal public class FileSinkCommittable extends Object implements Serializable
Wrapper class for both type of committables inFileSink
. One committable might be either one pending files to commit, or one in-progress file to cleanup.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileSinkCommittable(String bucketId, Path compactedFileToCleanup)
FileSinkCommittable(String bucketId, InProgressFileWriter.InProgressFileRecoverable inProgressFileToCleanup)
FileSinkCommittable(String bucketId, InProgressFileWriter.PendingFileRecoverable pendingFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getBucketId()
Path
getCompactedFileToCleanup()
InProgressFileWriter.InProgressFileRecoverable
getInProgressFileToCleanup()
InProgressFileWriter.PendingFileRecoverable
getPendingFile()
boolean
hasCompactedFileToCleanup()
int
hashCode()
boolean
hasInProgressFileToCleanup()
boolean
hasPendingFile()
String
toString()
-
-
-
Constructor Detail
-
FileSinkCommittable
public FileSinkCommittable(String bucketId, InProgressFileWriter.PendingFileRecoverable pendingFile)
-
FileSinkCommittable
public FileSinkCommittable(String bucketId, InProgressFileWriter.InProgressFileRecoverable inProgressFileToCleanup)
-
-
Method Detail
-
getBucketId
public String getBucketId()
-
hasPendingFile
public boolean hasPendingFile()
-
getPendingFile
@Nullable public InProgressFileWriter.PendingFileRecoverable getPendingFile()
-
hasInProgressFileToCleanup
public boolean hasInProgressFileToCleanup()
-
getInProgressFileToCleanup
@Nullable public InProgressFileWriter.InProgressFileRecoverable getInProgressFileToCleanup()
-
hasCompactedFileToCleanup
public boolean hasCompactedFileToCleanup()
-
getCompactedFileToCleanup
@Nullable public Path getCompactedFileToCleanup()
-
-