Package org.apache.hadoop.hbase.util
Class BloomContext
java.lang.Object
org.apache.hadoop.hbase.util.BloomContext
- Direct Known Subclasses:
RowBloomContext
,RowColBloomContext
The bloom context that is used by the StorefileWriter to add the bloom details per cell
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBloomContext
(BloomFilterWriter bloomFilterWriter, CellComparator comparator) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addLastBloomKey
(HFile.Writer writer) Adds the last bloom key to the HFile Writer as part of StorefileWriter close.protected abstract boolean
Returns true if the cell is a new key as per the bloom typeprivate void
sanityCheck
(Cell cell) void
writeBloom
(Cell cell) Bloom information from the cell is retrieved
-
Field Details
-
bloomFilterWriter
-
comparator
-
-
Constructor Details
-
BloomContext
-
-
Method Details
-
getLastCell
-
writeBloom
Bloom information from the cell is retrieved- Throws:
IOException
-
sanityCheck
- Throws:
IOException
-
addLastBloomKey
Adds the last bloom key to the HFile Writer as part of StorefileWriter close.- Throws:
IOException
-
isNewKey
Returns true if the cell is a new key as per the bloom type- Parameters:
cell
- the cell to be verified- Returns:
- true if a new key else false
-