@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, maxMemstoreTS, UNIFIED_ENCODED_BLOCKSIZE_RATIOblockEncoder, cacheConf, closeOutputStream, comparator, entryCount, fileInfo, firstCellInBlock, hFileContext, lastCell, metaData, metaNames, name, outputStream, path, totalKeyLength, totalUncompressedBytes, totalValueLength| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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(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
IOExceptionpublic void append(Cell cell) throws IOException
append 在接口中 HFile.Writerappend 在类中 HFileWriterV2cell - Cell to add. Cannot be empty nor null.IOExceptionprotected void finishFileInfo()
throws IOException
AbstractHFileWriterfinishFileInfo 在类中 AbstractHFileWriterIOExceptionprotected int getMajorVersion()
getMajorVersion 在类中 HFileWriterV2protected int getMinorVersion()
getMinorVersion 在类中 HFileWriterV2protected void finishClose(FixedFileTrailer trailer) throws IOException
AbstractHFileWriterfinishClose 在类中 AbstractHFileWriterIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.