@Internal public final class RowWisePartWriter<IN,BucketID> extends OutputStreamBasedPartFileWriter<IN,BucketID>
InProgressFileWriter
for row-wise formats that use an Encoder
. This also
implements the PartFileInfo
and the OutputStreamBasedCompactingFileWriter
.OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverable, OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverableSerializer, OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverable, OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverableSerializer
CompactingFileWriter.Type
InProgressFileWriter.InProgressFileRecoverable, InProgressFileWriter.PendingFileRecoverable
Constructor and Description |
---|
RowWisePartWriter(BucketID bucketId,
Path path,
RecoverableFsDataOutputStream currentPartStream,
Encoder<IN> encoder,
long creationTime) |
Modifier and Type | Method and Description |
---|---|
void |
write(IN element,
long currentTime)
Write an element to the part file.
|
asOutputStream, closeForCommit, dispose, ensureWriteType, getSize, persist
getBucketId, getCreationTime, getLastUpdateTime, markWrite
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public RowWisePartWriter(BucketID bucketId, Path path, RecoverableFsDataOutputStream currentPartStream, Encoder<IN> encoder, long creationTime)
public void write(IN element, long currentTime) throws IOException
InProgressFileWriter
element
- the element to be written.currentTime
- the writing time.IOException
- Thrown if writing the element fails.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.