@InterfaceAudience.Private public abstract class StripeMultiFileWriter extends AbstractMultiFileWriter
| Modifier and Type | Class and Description | 
|---|---|
| static class  | StripeMultiFileWriter.BoundaryMultiWriterMultiWriter that separates the cells based on fixed row-key boundaries. | 
| static class  | StripeMultiFileWriter.SizeMultiWriterMultiWriter that separates the cells based on target cell number per file and file count. | 
AbstractMultiFileWriter.WriterFactory| Modifier and Type | Field and Description | 
|---|---|
| protected List<byte[]> | boundaries | 
| protected CellComparator | comparator | 
| private boolean | doWriteStripeMetadataWhether to write stripe metadata | 
| protected List<StoreFileWriter> | existingWriters | 
| private static org.slf4j.Logger | LOG | 
sourceScanner, writerFactory| Constructor and Description | 
|---|
| StripeMultiFileWriter(CellComparator comparator) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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, commitWriters, initprivate static final org.slf4j.Logger LOG
protected final CellComparator comparator
protected List<StoreFileWriter> existingWriters
protected List<byte[]> boundaries
private boolean doWriteStripeMetadata
public StripeMultiFileWriter(CellComparator comparator)
public void setNoStripeMetadata()
protected Collection<StoreFileWriter> writers()
writers in class AbstractMultiFileWriterprotected abstract void preCommitWritersInternal() throws IOException
IOExceptionprotected final void preCommitWriters() throws IOException
AbstractMultiFileWriterpreCommitWriters in class AbstractMultiFileWriterIOExceptionprotected void preCloseWriter(StoreFileWriter writer) throws IOException
AbstractMultiFileWriterpreCloseWriter in class 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–2021 The Apache Software Foundation. All rights reserved.