@InterfaceAudience.Private public class StoreFileWriter extends Object implements CellSink, ShipperListener
| Modifier and Type | Class and Description |
|---|---|
static class |
StoreFileWriter.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected HFile.Writer |
writer |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Cell cell)
Append the given cell
|
void |
appendFileInfo(byte[] key,
byte[] value) |
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction)
Writes meta data.
|
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction,
long mobCellsCount)
Writes meta data.
|
void |
appendTrackedTimestampsToMetadata()
Add TimestampRange and earliest put timestamp to Metadata
|
void |
beforeShipped()
The action that needs to be performed before
Shipper.shipped() is performed |
void |
close() |
org.apache.hadoop.fs.Path |
getPath() |
boolean |
hasGeneralBloom() |
void |
trackTimestamps(Cell cell)
Record the earlest Put timestamp.
|
protected HFile.Writer writer
public void appendMetadata(long maxSequenceId,
boolean majorCompaction)
throws IOException
close() since its written as meta data to this file.maxSequenceId - Maximum sequence id.majorCompaction - True if this file is product of a major compactionIOException - problem writing to FSpublic void appendMetadata(long maxSequenceId,
boolean majorCompaction,
long mobCellsCount)
throws IOException
close() since its written as meta data to this file.maxSequenceId - Maximum sequence id.majorCompaction - True if this file is product of a major compactionmobCellsCount - The number of mob cells.IOException - problem writing to FSpublic void appendTrackedTimestampsToMetadata()
throws IOException
IOExceptionpublic void trackTimestamps(Cell cell)
public void append(Cell cell) throws IOException
CellSinkappend in interface CellSinkcell - the cell to be addedIOExceptionpublic void beforeShipped()
throws IOException
ShipperListenerShipper.shipped() is performedbeforeShipped in interface ShipperListenerIOExceptionpublic org.apache.hadoop.fs.Path getPath()
public boolean hasGeneralBloom()
public void close()
throws IOException
IOExceptionpublic void appendFileInfo(byte[] key,
byte[] value)
throws IOException
IOExceptionCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.