|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.BloomFilterDescriptor
public class BloomFilterDescriptor
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 |
---|
public static final int BLOOMFILTER
public static final int COUNTING_BLOOMFILTER
public static final int RETOUCHED_BLOOMFILTER
Constructor Detail |
---|
public BloomFilterDescriptor()
public BloomFilterDescriptor(int type, int vectorSize, int nbHash)
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 |
---|
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |