|
||||||||||
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
org.apache.hadoop.hbase.io.hfile.HFileWriterV3
@InterfaceAudience.Private public class HFileWriterV3
HFile
writer for version 3.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.io.hfile.HFileWriterV2 |
---|
fsBlockWriter, KEY_VALUE_VER_WITH_MEMSTORE, KEY_VALUE_VERSION, lastDataBlockOffset, MAX_MEMSTORE_TS_KEY, maxMemstoreTS |
Fields inherited from class org.apache.hadoop.hbase.io.hfile.AbstractHFileWriter |
---|
blockEncoder, cacheConf, closeOutputStream, comparator, entryCount, fileInfo, firstKeyInBlock, hFileContext, lastKeyBuffer, lastKeyLength, lastKeyOffset, metaData, metaNames, name, outputStream, path, totalKeyLength, totalUncompressedBytes, totalValueLength |
Constructor Summary | |
---|---|
HFileWriterV3(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,
KeyValue.KVComparator comparator,
HFileContext fileContext)
Constructor that takes a path, creates and closes the output stream. |
Method Summary | |
---|---|
void |
append(byte[] key,
byte[] value)
Add key/value to file. |
void |
append(byte[] key,
byte[] value,
byte[] tag)
Add key/value to file. |
void |
append(KeyValue kv)
Add key/value to file. |
protected void |
finishClose(FixedFileTrailer trailer)
Sets remaining trailer fields, writes the trailer to disk, and optionally closes the output stream. |
protected void |
finishFileInfo()
Add last bits of metadata to file info before it is written out. |
protected int |
getMajorVersion()
|
protected int |
getMinorVersion()
|
Methods inherited from class org.apache.hadoop.hbase.io.hfile.HFileWriterV2 |
---|
addDeleteFamilyBloomFilter, addGeneralBloomFilter, addInlineBlockWriter, append, appendMetaBlock, checkBlockBoundary, close, finishInit, getFileContext, newBlock |
Methods inherited from class org.apache.hadoop.hbase.io.hfile.AbstractHFileWriter |
---|
appendFileInfo, checkKey, checkValue, compressionByName, createOutputStream, getPath, toString, writeFileInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HFileWriterV3(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, KeyValue.KVComparator comparator, HFileContext fileContext) throws IOException
IOException
Method Detail |
---|
public void append(KeyValue kv) throws IOException
append
in interface HFile.Writer
append
in class HFileWriterV2
kv
- KeyValue to add. Cannot be empty nor null.
IOException
public void append(byte[] key, byte[] value) throws IOException
append
in interface HFile.Writer
append
in class HFileWriterV2
key
- Key to add. Cannot be empty nor null.value
- Value to add. Cannot be empty nor null.
IOException
public void append(byte[] key, byte[] value, byte[] tag) throws IOException
append
in interface HFile.Writer
append
in class HFileWriterV2
key
- Key to add. Cannot be empty nor null.value
- Value to add. Cannot be empty nor null.tag
- Tag t add. Cannot be empty or null.
IOException
protected void finishFileInfo() throws IOException
AbstractHFileWriter
finishFileInfo
in class AbstractHFileWriter
IOException
protected int getMajorVersion()
getMajorVersion
in class HFileWriterV2
protected int getMinorVersion()
getMinorVersion
in class HFileWriterV2
protected void finishClose(FixedFileTrailer trailer) throws IOException
AbstractHFileWriter
finishClose
in class AbstractHFileWriter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |