Package org.apache.hadoop.hbase.util
Class RowBloomContext
java.lang.Object
org.apache.hadoop.hbase.util.BloomContext
org.apache.hadoop.hbase.util.RowBloomContext
- Direct Known Subclasses:
RowPrefixFixedLengthBloomContext
Handles ROW bloom related context. It works with both ByteBufferedCell and byte[] backed cells
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.util.BloomContext
bloomFilterWriter, comparator
-
Constructor Summary
ConstructorDescriptionRowBloomContext
(BloomFilterWriter bloomFilterWriter, CellComparator comparator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLastBloomKey
(HFile.Writer writer) Adds the last bloom key to the HFile Writer as part of StorefileWriter close.protected boolean
Returns true if the cell is a new key as per the bloom typeMethods inherited from class org.apache.hadoop.hbase.util.BloomContext
getLastCell, writeBloom
-
Constructor Details
-
RowBloomContext
-
-
Method Details
-
addLastBloomKey
Description copied from class:BloomContext
Adds the last bloom key to the HFile Writer as part of StorefileWriter close.- Specified by:
addLastBloomKey
in classBloomContext
- Throws:
IOException
-
isNewKey
Description copied from class:BloomContext
Returns true if the cell is a new key as per the bloom type- Specified by:
isNewKey
in classBloomContext
- Parameters:
cell
- the cell to be verified- Returns:
- true if a new key else false
-