org.apache.hadoop.hbase
Class BloomFilterDescriptor

java.lang.Object
  extended by org.apache.hadoop.hbase.BloomFilterDescriptor
All Implemented Interfaces:
Comparable, Writable, WritableComparable

public class BloomFilterDescriptor
extends Object
implements WritableComparable

Supplied as a parameter to HColumnDescriptor to specify what kind of bloom filter to use for a column, and its configuration parameters


Field Summary
static int BLOOMFILTER
          Bloom filter, as defined by Bloom in 1970.
static int COUNTING_BLOOMFILTER
          counting Bloom filter, as defined by Fan et al.
static int RETOUCHED_BLOOMFILTER
          retouched Bloom filter, as defined in the CoNEXT 2006 paper.
 
Constructor Summary
BloomFilterDescriptor()
          Default constructor - used in conjunction with Writable
BloomFilterDescriptor(int type, int vectorSize, int nbHash)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 String toString()
           
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BLOOMFILTER

public static final int BLOOMFILTER
Bloom filter, as defined by Bloom in 1970.

See Also:
Constant Field Values

COUNTING_BLOOMFILTER

public static final int COUNTING_BLOOMFILTER
counting Bloom filter, as defined by Fan et al. in a ToN 2000 paper.

See Also:
Constant Field Values

RETOUCHED_BLOOMFILTER

public static final int RETOUCHED_BLOOMFILTER
retouched Bloom filter, as defined in the CoNEXT 2006 paper.

See Also:
Constant Field Values
Constructor Detail

BloomFilterDescriptor

public BloomFilterDescriptor()
Default constructor - used in conjunction with Writable


BloomFilterDescriptor

public BloomFilterDescriptor(int type,
                             int vectorSize,
                             int nbHash)
Parameters:
type - The kind of bloom filter to use.
vectorSize - The vector size of this filter.
nbHash - The number of hash functions to consider.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 2006 The Apache Software Foundation