@InterfaceAudience.Private public class HFileWriterV3 extends HFileWriterV2
HFile writer for version 3.fsBlockWriter, KEY_VALUE_VER_WITH_MEMSTORE, KEY_VALUE_VERSION, lastDataBlockOffset, MAX_MEMSTORE_TS_KEY, maxMemstoreTSblockEncoder, cacheConf, closeOutputStream, comparator, entryCount, fileInfo, firstCellInBlock, hFileContext, lastCell, metaData, metaNames, name, outputStream, path, totalKeyLength, totalUncompressedBytes, totalValueLength| Constructor and Description |
|---|
HFileWriterV3(Configuration conf,
CacheConfig cacheConf,
FileSystem fs,
Path path,
FSDataOutputStream ostream,
KeyValue.KVComparator comparator,
HFileContext fileContext)
Constructor that takes a path, creates and closes the output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(Cell cell)
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() |
addDeleteFamilyBloomFilter, addGeneralBloomFilter, addInlineBlockWriter, appendMetaBlock, checkBlockBoundary, close, finishInit, getFileContext, newBlockappendFileInfo, checkKey, checkValue, compressionByName, createOutputStream, getPath, toString, writeFileInfopublic HFileWriterV3(Configuration conf,
CacheConfig cacheConf,
FileSystem fs,
Path path,
FSDataOutputStream ostream,
KeyValue.KVComparator comparator,
HFileContext fileContext)
throws java.io.IOException
java.io.IOExceptionpublic void append(Cell cell) throws java.io.IOException
append in interface HFile.Writerappend in class HFileWriterV2cell - Cell to add. Cannot be empty nor null.java.io.IOExceptionprotected void finishFileInfo()
throws java.io.IOException
AbstractHFileWriterfinishFileInfo in class AbstractHFileWriterjava.io.IOExceptionprotected int getMajorVersion()
getMajorVersion in class HFileWriterV2protected int getMinorVersion()
getMinorVersion in class HFileWriterV2protected void finishClose(FixedFileTrailer trailer) throws java.io.IOException
AbstractHFileWriterfinishClose in class AbstractHFileWriterjava.io.IOException