IN - the element typeBucketID - the bucket typepublic abstract class OutputStreamBasedPartFileWriter<IN,BucketID> extends AbstractPartFileWriter<IN,BucketID>
RecoverableFsDataOutputStream.InProgressFileWriter.InProgressFileRecoverable, InProgressFileWriter.PendingFileRecoverable| 限定符和类型 | 方法和说明 |
|---|---|
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.