@Internal public class FileSinkCommittable extends Object implements Serializable
FileSink
. One committable might be either
one pending files to commit, or one in-progress file to cleanup.Constructor and Description |
---|
FileSinkCommittable(String bucketId,
InProgressFileWriter.InProgressFileRecoverable inProgressFileToCleanup) |
FileSinkCommittable(String bucketId,
InProgressFileWriter.PendingFileRecoverable pendingFile) |
FileSinkCommittable(String bucketId,
Path compactedFileToCleanup) |
Modifier and Type | Method and 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() |
public FileSinkCommittable(String bucketId, InProgressFileWriter.PendingFileRecoverable pendingFile)
public FileSinkCommittable(String bucketId, InProgressFileWriter.InProgressFileRecoverable inProgressFileToCleanup)
public String getBucketId()
public boolean hasPendingFile()
@Nullable public InProgressFileWriter.PendingFileRecoverable getPendingFile()
public boolean hasInProgressFileToCleanup()
@Nullable public InProgressFileWriter.InProgressFileRecoverable getInProgressFileToCleanup()
public boolean hasCompactedFileToCleanup()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.