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