@InterfaceAudience.Private public abstract class BloomContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BloomFilterWriter |
bloomFilterWriter |
protected org.apache.hadoop.hbase.CellComparator |
comparator |
| Constructor and Description |
|---|
BloomContext(BloomFilterWriter bloomFilterWriter,
org.apache.hadoop.hbase.CellComparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addLastBloomKey(HFile.Writer writer)
Adds the last bloom key to the HFile Writer as part of StorefileWriter close.
|
org.apache.hadoop.hbase.Cell |
getLastCell() |
protected abstract boolean |
isNewKey(org.apache.hadoop.hbase.Cell cell)
Returns true if the cell is a new key as per the bloom type
|
void |
writeBloom(org.apache.hadoop.hbase.Cell cell)
Bloom information from the cell is retrieved
|
protected BloomFilterWriter bloomFilterWriter
protected org.apache.hadoop.hbase.CellComparator comparator
public BloomContext(BloomFilterWriter bloomFilterWriter, org.apache.hadoop.hbase.CellComparator comparator)
public org.apache.hadoop.hbase.Cell getLastCell()
public void writeBloom(org.apache.hadoop.hbase.Cell cell)
throws IOException
cell - IOExceptionpublic abstract void addLastBloomKey(HFile.Writer writer) throws IOException
writer - IOExceptionprotected abstract boolean isNewKey(org.apache.hadoop.hbase.Cell cell)
cell - the cell to be verifiedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.