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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBloomContext(BloomFilterWriter bloomFilterWriter, CellComparator comparator) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddLastBloomKey(HFile.Writer writer) Adds the last bloom key to the HFile Writer as part of StorefileWriter close.protected abstract booleanReturns true if the cell is a new key as per the bloom typeprivate voidsanityCheck(Cell cell) voidwriteBloom(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
-