|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.io.hfile.AbstractHFileWriter
org.apache.hadoop.hbase.io.hfile.HFileWriterV2
@InterfaceAudience.Private public class HFileWriterV2
Writes HFile format version 2.
Field Summary | |
---|---|
static int |
KEY_VALUE_VER_WITH_MEMSTORE
Version for KeyValue which includes memstore timestamp |
static byte[] |
KEY_VALUE_VERSION
KeyValue version in FileInfo |
static byte[] |
MAX_MEMSTORE_TS_KEY
Max memstore (mvcc) timestamp in FileInfo |
Fields inherited from class org.apache.hadoop.hbase.io.hfile.AbstractHFileWriter |
---|
blockEncoder, blockSize, cacheConf, closeOutputStream, comparator, compressAlgo, entryCount, fileInfo, firstKeyInBlock, lastKeyBuffer, lastKeyLength, lastKeyOffset, metaData, metaNames, name, outputStream, path, totalKeyLength, totalUncompressedBytes, totalValueLength |
Constructor Summary | |
---|---|
HFileWriterV2(org.apache.hadoop.conf.Configuration conf,
CacheConfig cacheConf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataOutputStream ostream,
int blockSize,
Compression.Algorithm compressAlgo,
HFileDataBlockEncoder blockEncoder,
KeyValue.KeyComparator comparator,
ChecksumType checksumType,
int bytesPerChecksum,
boolean includeMVCCReadpoint)
Constructor that takes a path, creates and closes the output stream. |
Method Summary | |
---|---|
void |
addDeleteFamilyBloomFilter(BloomFilterWriter bfw)
Store delete family Bloom filter in the file, which is only supported in HFile V2. |
void |
addGeneralBloomFilter(BloomFilterWriter bfw)
Store general Bloom filter in the file. |
void |
addInlineBlockWriter(InlineBlockWriter ibw)
Adds an inline block writer such as a multi-level block index writer or a compound Bloom filter writer. |
void |
append(byte[] key,
byte[] value)
Add key/value to file. |
void |
append(KeyValue kv)
Add key/value to file. |
void |
appendMetaBlock(String metaBlockName,
org.apache.hadoop.io.Writable content)
Add a meta block to the end of the file. |
void |
close()
|
Methods inherited from class org.apache.hadoop.hbase.io.hfile.AbstractHFileWriter |
---|
appendFileInfo, checkKey, checkValue, compressionByName, createOutputStream, finishClose, finishFileInfo, getPath, toString, writeFileInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte[] MAX_MEMSTORE_TS_KEY
public static final byte[] KEY_VALUE_VERSION
public static final int KEY_VALUE_VER_WITH_MEMSTORE
Constructor Detail |
---|
public HFileWriterV2(org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream ostream, int blockSize, Compression.Algorithm compressAlgo, HFileDataBlockEncoder blockEncoder, KeyValue.KeyComparator comparator, ChecksumType checksumType, int bytesPerChecksum, boolean includeMVCCReadpoint) throws IOException
IOException
Method Detail |
---|
public void appendMetaBlock(String metaBlockName, org.apache.hadoop.io.Writable content)
AbstractHFileWriter.appendFileInfo(byte[], byte[])
metaBlockName
- name of the blockcontent
- will call readFields to get data later (DO NOT REUSE)public void append(KeyValue kv) throws IOException
kv
- KeyValue to add. Cannot be empty nor null.
IOException
public void append(byte[] key, byte[] value) throws IOException
key
- Key to add. Cannot be empty nor null.value
- Value to add. Cannot be empty nor null.
IOException
public void close() throws IOException
IOException
public void addInlineBlockWriter(InlineBlockWriter ibw)
HFile.Writer
public void addGeneralBloomFilter(BloomFilterWriter bfw)
HFile.Writer
public void addDeleteFamilyBloomFilter(BloomFilterWriter bfw)
HFile.Writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |