Class OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverable
- java.lang.Object
-
- org.apache.flink.streaming.api.functions.sink.filesystem.OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverable
-
- All Implemented Interfaces:
InProgressFileWriter.PendingFileRecoverable
- Enclosing class:
- OutputStreamBasedPartFileWriter<IN,BucketID>
public static final class OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverable extends Object implements InProgressFileWriter.PendingFileRecoverable
TheInProgressFileWriter.PendingFileRecoverable
implementation forOutputStreamBasedPartFileWriter.OutputStreamBasedBucketWriter
.
-
-
Constructor Summary
Constructors Constructor Description OutputStreamBasedPendingFileRecoverable(RecoverableWriter.CommitRecoverable commitRecoverable)
Deprecated.OutputStreamBasedPendingFileRecoverable(RecoverableWriter.CommitRecoverable commitRecoverable, Path targetPath, long fileSize)
-
-
-
Constructor Detail
-
OutputStreamBasedPendingFileRecoverable
@Deprecated public OutputStreamBasedPendingFileRecoverable(RecoverableWriter.CommitRecoverable commitRecoverable)
Deprecated.
-
OutputStreamBasedPendingFileRecoverable
public OutputStreamBasedPendingFileRecoverable(RecoverableWriter.CommitRecoverable commitRecoverable, @Nullable Path targetPath, long fileSize)
-
-
Method Detail
-
getPath
public Path getPath()
- Specified by:
getPath
in interfaceInProgressFileWriter.PendingFileRecoverable
- Returns:
- The target path of the pending file, null if unavailable.
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceInProgressFileWriter.PendingFileRecoverable
- Returns:
- The size of the pending file, -1 if unavailable.
-
-