Package org.apache.hadoop.hbase.io.hfile
Interface HFile.Writer
- All Superinterfaces:
AutoCloseable,CellSink,Closeable,ShipperListener
- All Known Implementing Classes:
HFileWriterImpl
- Enclosing class:
- HFile
API required to write an
HFile-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]Max memstore (mvcc) timestamp in FileInfo -
Method Summary
Modifier and TypeMethodDescriptionvoidStore delete family Bloom filter in the file, which is only supported in HFile V2.voidStore general Bloom filter in the file.voidaddInlineBlockWriter(InlineBlockWriter bloomWriter) Adds an inline block writer such as a multi-level block index writer or a compound Bloom filter writer.voidappendFileInfo(byte[] key, byte[] value) Add an element to the file info map.voidappendMetaBlock(String bloomFilterMetaKey, org.apache.hadoop.io.Writable metaWriter) Return the file context for the HFile this writer belongs toorg.apache.hadoop.fs.PathgetPath()Returns the path to thisHFileMethods inherited from interface org.apache.hadoop.hbase.regionserver.ShipperListener
beforeShipped
-
Field Details
-
MAX_MEMSTORE_TS_KEY
Max memstore (mvcc) timestamp in FileInfo
-
-
Method Details
-
appendFileInfo
Add an element to the file info map.- Throws:
IOException
-
getPath
org.apache.hadoop.fs.Path getPath()Returns the path to thisHFile -
addInlineBlockWriter
Adds an inline block writer such as a multi-level block index writer or a compound Bloom filter writer. -
appendMetaBlock
-
addGeneralBloomFilter
Store general Bloom filter in the file. This does not deal with Bloom filter internals but is necessary, since Bloom filters are stored differently in HFile version 1 and version 2. -
addDeleteFamilyBloomFilter
Store delete family Bloom filter in the file, which is only supported in HFile V2.- Throws:
IOException
-
getFileContext
Return the file context for the HFile this writer belongs to
-