|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.StoreFile.Writer
public static class StoreFile.Writer
A StoreFile writer. Use this to read/write HBase Store Files. It is package local because it is an implementation detail of the HBase regionserver.
| Field Summary | |
|---|---|
protected int |
bytesPerChecksum
Bytes per Checksum |
protected ChecksumType |
checksumType
Checksum type |
protected HFileDataBlockEncoder |
dataBlockEncoder
|
protected HFile.Writer |
writer
|
| Method Summary | |
|---|---|
void |
append(KeyValue kv)
|
void |
appendFileInfo(byte[] key,
byte[] value)
|
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction)
Writes meta data. |
void |
appendTrackedTimestampsToMetadata()
Add TimestampRange and earliest put timestamp to Metadata |
void |
close()
|
org.apache.hadoop.fs.Path |
getPath()
|
void |
setTimeRangeTracker(TimeRangeTracker trt)
Set TimeRangeTracker |
void |
trackTimestamps(KeyValue kv)
Record the earlest Put timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HFileDataBlockEncoder dataBlockEncoder
protected ChecksumType checksumType
protected int bytesPerChecksum
protected HFile.Writer writer
| Method Detail |
|---|
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 compaction
IOException - problem writing to FS
public void appendTrackedTimestampsToMetadata()
throws IOException
IOExceptionpublic void setTimeRangeTracker(TimeRangeTracker trt)
trt - public void trackTimestamps(KeyValue kv)
kv -
public void append(KeyValue kv)
throws IOException
append in interface Compactor.CellSinkIOExceptionpublic org.apache.hadoop.fs.Path getPath()
public void close()
throws IOException
IOException
public void appendFileInfo(byte[] key,
byte[] value)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||