public static class StripeMultiFileWriter.SizeMultiWriter extends StripeMultiFileWriter
StripeMultiFileWriter.BoundaryMultiWriter, StripeMultiFileWriter.SizeMultiWriterAbstractMultiFileWriter.WriterFactory| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
lastRowInCurrentWriter |
boundaries, comparator, existingWriterssourceScanner, writerFactory| 构造器和说明 |
|---|
SizeMultiWriter(CellComparator comparator,
int targetCount,
long targetKvs,
byte[] left,
byte[] right) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
append(Cell cell)
Append the given cell
|
protected void |
preCommitWritersInternal() |
preCloseWriter, preCommitWriters, sanityCheckLeft, sanityCheckRight, setNoStripeMetadata, writersabortWriters, beforeShipped, commitWriters, initpublic SizeMultiWriter(CellComparator comparator, int targetCount, long targetKvs, byte[] left, byte[] right)
targetCount - The maximum count of writers that can be created.targetKvs - The number of KVs to read from source before starting each new writer.left - The left boundary of the first writer.right - The right boundary of the last writer.public void append(Cell cell) throws IOException
CellSinkcell - the cell to be addedIOExceptionprotected void preCommitWritersInternal()
throws IOException
preCommitWritersInternal 在类中 StripeMultiFileWriterIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.