Interface BloomFilterWriter

All Superinterfaces:
BloomFilterBase, CellSink, ShipperListener
All Known Implementing Classes:
CompoundBloomFilterWriter

@Private public interface BloomFilterWriter extends BloomFilterBase, CellSink, ShipperListener
Specifies methods needed to add elements to a Bloom filter and serialize the resulting Bloom filter as a sequence of bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Compact the Bloom filter before writing metadata & data to disk.
    org.apache.hadoop.io.Writable
    Get a writable interface into bloom filter data (the actual Bloom bits).
    org.apache.hadoop.io.Writable
    Get a writable interface into bloom filter meta data.
    Returns the previous cell written by this writer

    Methods inherited from interface org.apache.hadoop.hbase.util.BloomFilterBase

    getByteSize, getKeyCount, getMaxKeys

    Methods inherited from interface org.apache.hadoop.hbase.regionserver.CellSink

    append, appendAll

    Methods inherited from interface org.apache.hadoop.hbase.regionserver.ShipperListener

    beforeShipped
  • Method Details

    • compactBloom

      void compactBloom()
      Compact the Bloom filter before writing metadata & data to disk.
    • getMetaWriter

      org.apache.hadoop.io.Writable getMetaWriter()
      Get a writable interface into bloom filter meta data.
      Returns:
      a writable instance that can be later written to a stream
    • getDataWriter

      org.apache.hadoop.io.Writable getDataWriter()
      Get a writable interface into bloom filter data (the actual Bloom bits). Not used for compound Bloom filters.
      Returns:
      a writable instance that can be later written to a stream
    • getPrevCell

      Returns the previous cell written by this writer
      Returns:
      the previous cell