@InterfaceAudience.Private public abstract class StripeMultiFileWriter extends AbstractMultiFileWriter
| 限定符和类型 | 类和说明 |
|---|---|
static class |
StripeMultiFileWriter.BoundaryMultiWriter
MultiWriter that separates the cells based on fixed row-key boundaries.
|
static class |
StripeMultiFileWriter.SizeMultiWriter
MultiWriter that separates the cells based on target cell number per file and file count.
|
AbstractMultiFileWriter.WriterFactory| 限定符和类型 | 字段和说明 |
|---|---|
protected List<byte[]> |
boundaries |
protected CellComparator |
comparator |
protected List<StoreFileWriter> |
existingWriters |
sourceScanner, writerFactory| 构造器和说明 |
|---|
StripeMultiFileWriter(CellComparator comparator) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
preCloseWriter(StoreFileWriter writer)
Subclasses override this method to be called before we close the give writer.
|
protected void |
preCommitWriters()
Subclasses override this method to be called at the end of a successful sequence of append; all
appends are processed before this method is called.
|
protected abstract void |
preCommitWritersInternal() |
protected void |
sanityCheckLeft(byte[] left,
Cell cell)
Subclasses can call this method to make sure the first KV is within multi-writer range.
|
protected void |
sanityCheckRight(byte[] right,
Cell cell)
Subclasses can call this method to make sure the last KV is within multi-writer range.
|
void |
setNoStripeMetadata() |
protected Collection<StoreFileWriter> |
writers() |
abortWriters, beforeShipped, commitWriters, initprotected final CellComparator comparator
protected List<StoreFileWriter> existingWriters
protected List<byte[]> boundaries
public StripeMultiFileWriter(CellComparator comparator)
public void setNoStripeMetadata()
protected Collection<StoreFileWriter> writers()
writers 在类中 AbstractMultiFileWriterprotected abstract void preCommitWritersInternal()
throws IOException
IOExceptionprotected final void preCommitWriters()
throws IOException
AbstractMultiFileWriterpreCommitWriters 在类中 AbstractMultiFileWriterIOExceptionprotected void preCloseWriter(StoreFileWriter writer) throws IOException
AbstractMultiFileWriterpreCloseWriter 在类中 AbstractMultiFileWriterIOExceptionprotected void sanityCheckLeft(byte[] left,
Cell cell)
throws IOException
left - The left boundary of the writer.cell - The cell whose row has to be checked.IOExceptionprotected void sanityCheckRight(byte[] right,
Cell cell)
throws IOException
right - The right boundary of the writer.IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.