org.elasticsearch.common.bloom
Class ObsBloomFilter

java.lang.Object
  extended by org.elasticsearch.common.bloom.ObsBloomFilter
All Implemented Interfaces:
BloomFilter

public class ObsBloomFilter
extends java.lang.Object
implements BloomFilter


Field Summary
 
Fields inherited from interface org.elasticsearch.common.bloom.BloomFilter
EMPTY, NONE
 
Method Summary
 void add(byte[] key, int offset, int length)
           
 void add(java.nio.ByteBuffer key)
           
 void clear()
           
 boolean isPresent(byte[] key, int offset, int length)
           
 boolean isPresent(java.nio.ByteBuffer key)
           
 long sizeInBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public void add(byte[] key,
                int offset,
                int length)
Specified by:
add in interface BloomFilter

add

public void add(java.nio.ByteBuffer key)
Specified by:
add in interface BloomFilter

isPresent

public boolean isPresent(byte[] key,
                         int offset,
                         int length)
Specified by:
isPresent in interface BloomFilter

isPresent

public boolean isPresent(java.nio.ByteBuffer key)
Specified by:
isPresent in interface BloomFilter

clear

public void clear()

sizeInBytes

public long sizeInBytes()
Specified by:
sizeInBytes in interface BloomFilter