Interface IFilter

All Superinterfaces:
AutoCloseable, SharedCloseable
All Known Implementing Classes:
BloomFilter

public interface IFilter extends SharedCloseable
  • Method Details

    • add

      void add(IFilter.FilterKey key)
    • isPresent

      boolean isPresent(IFilter.FilterKey key)
    • clear

      void clear()
    • serializedSize

      long serializedSize(boolean oldSerializationFormat)
    • serialize

      void serialize(DataOutputStreamPlus out, boolean oldSerializationFormat) throws IOException
      Throws:
      IOException
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • sharedCopy

      IFilter sharedCopy()
      Specified by:
      sharedCopy in interface SharedCloseable
      Returns:
      a new instance of the object representing the same state and backed by the same underlying resources. Coordinates with the original (and other instances) when the underlying resource should be closed. Throws an exception if the shared resource has already been closed.
    • offHeapSize

      long offHeapSize()
      Returns the amount of memory in bytes used off heap.
      Returns:
      the amount of memory in bytes used off heap
    • isInformative

      boolean isInformative()