IN - the element typeBucketID - the bucket typepublic abstract class OutputStreamBasedPartFileWriter<IN,BucketID> extends AbstractPartFileWriter<IN,BucketID>
RecoverableFsDataOutputStream.| Modifier and Type | Class and Description |
|---|---|
static class |
OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverable
The
InProgressFileRecoverable implementation for OutputStreamBasedBucketWriter. |
static class |
OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverableSerializer
The serializer for
OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverable. |
static class |
OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverable
The
PendingFileRecoverable implementation for OutputStreamBasedBucketWriter. |
static class |
OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverableSerializer
The serializer for
OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverable. |
InProgressFileWriter.InProgressFileRecoverable, InProgressFileWriter.PendingFileRecoverable| Modifier and Type | Method and Description |
|---|---|
InProgressFileWriter.PendingFileRecoverable |
closeForCommit() |
void |
dispose()
Dispose the part file.
|
long |
getSize() |
InProgressFileWriter.InProgressFileRecoverable |
persist() |
getBucketId, getCreationTime, getLastUpdateTime, markWriteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic InProgressFileWriter.InProgressFileRecoverable persist() throws IOException
IOException - Thrown if persisting the part file fails.public InProgressFileWriter.PendingFileRecoverable closeForCommit() throws IOException
Bucket uses this to commit the pending
file.IOException - Thrown if an I/O error occurs.public void dispose()
InProgressFileWriterpublic long getSize()
throws IOException
IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.