@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
IOException
public void trackTimestamps(Cell cell)
public void append(Cell cell) throws IOException
CellSink
append
in interface CellSink
cell
- the cell to be addedIOException
public void beforeShipped() throws IOException
ShipperListener
Shipper.shipped()
is performedbeforeShipped
in interface ShipperListener
IOException
public org.apache.hadoop.fs.Path getPath()
public boolean hasGeneralBloom()
public void close() throws IOException
IOException
public void appendFileInfo(byte[] key, byte[] value) throws IOException
IOException
Copyright © 2007–2019 Cloudera. All rights reserved.