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, markWrite
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public 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()
InProgressFileWriter
public long getSize() throws IOException
IOException
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.