|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.glacier.v2.BloomFilter
DESCRIBE THE CLASS
Constructor Summary | |
BloomFilter(InputBuffer buf)
Constructor for BloomFilter. |
|
BloomFilter(int length,
int[] hashParams)
Constructor for BloomFilter. |
|
BloomFilter(int length,
int numHashes,
RandomSource rand)
Constructor for BloomFilter. |
Method Summary | |
void |
add(byte[] data)
DESCRIBE THE METHOD |
boolean |
contains(byte[] data)
DESCRIBE THE METHOD |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BloomFilter(int length, int[] hashParams)
length
- DESCRIBE THE PARAMETERhashParams
- DESCRIBE THE PARAMETERpublic BloomFilter(int length, int numHashes, RandomSource rand)
length
- DESCRIBE THE PARAMETERnumHashes
- DESCRIBE THE PARAMETERrand
- DESCRIBE THE PARAMETERpublic BloomFilter(InputBuffer buf) throws java.io.IOException
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONMethod Detail |
public void add(byte[] data)
data
- DESCRIBE THE PARAMETERpublic boolean contains(byte[] data)
data
- DESCRIBE THE PARAMETER
public java.lang.String toString()
public void serialize(OutputBuffer buf) throws java.io.IOException
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |