|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private public interface BloomFilterWriter
Specifies methods needed to add elements to a Bloom filter and serialize the resulting Bloom filter as a sequence of bytes.
Method Summary | |
---|---|
void |
add(byte[] buf,
int offset,
int len)
Add the specified binary to the bloom filter. |
void |
allocBloom()
Allocate memory for the bloom filter data. |
void |
compactBloom()
Compact the Bloom filter before writing metadata & data to disk. |
org.apache.hadoop.io.Writable |
getDataWriter()
Get a writable interface into bloom filter data (the actual Bloom bits). |
org.apache.hadoop.io.Writable |
getMetaWriter()
Get a writable interface into bloom filter meta data. |
Methods inherited from interface org.apache.hadoop.hbase.util.BloomFilterBase |
---|
createBloomKey, getByteSize, getComparator, getKeyCount, getMaxKeys |
Method Detail |
---|
void allocBloom()
void compactBloom()
org.apache.hadoop.io.Writable getMetaWriter()
org.apache.hadoop.io.Writable getDataWriter()
void add(byte[] buf, int offset, int len)
buf
- data to be added to the bloomoffset
- offset into the data to be addedlen
- length of the data to be added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |