@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.OutputStreamBasedPendingFileRecoverableSerializerCompactingFileWriter.TypeInProgressFileWriter.InProgressFileRecoverable, InProgressFileWriter.PendingFileRecoverable| 构造器和说明 |
|---|
RowWisePartWriter(BucketID bucketId,
org.apache.flink.core.fs.Path path,
org.apache.flink.core.fs.RecoverableFsDataOutputStream currentPartStream,
org.apache.flink.api.common.serialization.Encoder<IN> encoder,
long creationTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
write(IN element,
long currentTime)
Write an element to the part file.
|
asOutputStream, closeForCommit, dispose, ensureWriteType, getSize, persistgetBucketId, getCreationTime, getLastUpdateTime, markWriteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic void write(IN element, long currentTime) throws IOException
InProgressFileWriterelement - the element to be written.currentTime - the writing time.IOException - Thrown if writing the element fails.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.