public static class StoreFile.Writer extends Object implements Compactor.CellSink
| Modifier and Type | Field and Description |
|---|---|
protected int |
bytesPerChecksum
Bytes per Checksum
|
protected ChecksumType |
checksumType
Checksum type
|
protected HFile.Writer |
writer |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected ChecksumType checksumType
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 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
IOExceptionpublic void appendFileInfo(byte[] key,
byte[] value)
throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.