Package org.apache.hadoop.hbase.util
Class RowPrefixFixedLengthBloomContext
java.lang.Object
org.apache.hadoop.hbase.util.BloomContext
org.apache.hadoop.hbase.util.RowBloomContext
org.apache.hadoop.hbase.util.RowPrefixFixedLengthBloomContext
Handles ROWPREFIX 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
ConstructorDescriptionRowPrefixFixedLengthBloomContext
(BloomFilterWriter bloomFilterWriter, CellComparator comparator, int prefixLength) -
Method Summary
Modifier and TypeMethodDescriptionprivate ExtendedCell
getRowPrefixCell
(ExtendedCell cell) void
writeBloom
(ExtendedCell cell) Bloom information from the cell is retrievedMethods inherited from class org.apache.hadoop.hbase.util.RowBloomContext
addLastBloomKey, isNewKey
Methods inherited from class org.apache.hadoop.hbase.util.BloomContext
getLastCell
-
Field Details
-
prefixLength
-
-
Constructor Details
-
RowPrefixFixedLengthBloomContext
public RowPrefixFixedLengthBloomContext(BloomFilterWriter bloomFilterWriter, CellComparator comparator, int prefixLength)
-
-
Method Details
-
writeBloom
Description copied from class:BloomContext
Bloom information from the cell is retrieved- Overrides:
writeBloom
in classBloomContext
- Throws:
IOException
-
getRowPrefixCell
- Parameters:
cell
- the cell- Returns:
- the new cell created by row prefix
-