public static class StoreFile.Writer extends Object implements Compactor.CellSink
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
bytesPerChecksum
Bytes per Checksum 
 | 
protected HFile.Writer | 
writer  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
append(Cell 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 | 
close()  | 
Path | 
getPath()  | 
boolean | 
hasGeneralBloom()  | 
void | 
setTimeRangeTracker(TimeRangeTracker trt)
Set TimeRangeTracker 
 | 
void | 
trackTimestamps(Cell cell)
Record the earlest Put timestamp. 
 | 
protected int bytesPerChecksum
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 setTimeRangeTracker(TimeRangeTracker trt)
trt - public void trackTimestamps(Cell cell)
cell - public void append(Cell cell) throws IOException
append in interface Compactor.CellSinkIOExceptionpublic Path getPath()
public boolean hasGeneralBloom()
public void close()
           throws IOException
IOExceptionpublic void appendFileInfo(byte[] key,
                           byte[] value)
                    throws IOException
IOException