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
FieldsFields inherited from class org.apache.hadoop.hbase.util.BloomContext
bloomFilterWriter, comparator -
Constructor Summary
ConstructorsConstructorDescriptionRowPrefixFixedLengthBloomContext(BloomFilterWriter bloomFilterWriter, CellComparator comparator, int prefixLength) -
Method Summary
Modifier and TypeMethodDescriptionprivate CellgetRowPrefixCell(Cell cell) voidwriteBloom(Cell cell) Bloom information from the cell is retrievedMethods inherited from class org.apache.hadoop.hbase.util.RowBloomContext
addLastBloomKey, isNewKeyMethods 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:BloomContextBloom information from the cell is retrieved- Overrides:
writeBloomin classBloomContext- Throws:
IOException
-
getRowPrefixCell
- Parameters:
cell- the cell- Returns:
- the new cell created by row prefix
-