@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
|
private void |
sanityCheck(Cell cell) |
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
cell
- IOException
private void sanityCheck(Cell cell) throws IOException
IOException
public abstract void addLastBloomKey(HFile.Writer writer) throws IOException
writer
- IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.