rice.p2p.glacier.v2
Class BloomFilter
java.lang.Object
rice.p2p.glacier.v2.BloomFilter
-
All Implemented Interfaces:
- java.io.Serializable
-
public class BloomFilter
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BloomFilter
public BloomFilter(int length,
int[] hashParams)
BloomFilter
public BloomFilter(int length,
int numHashes,
RandomSource rand)
add
public void add(byte[] data)
-
-
contains
public boolean contains(byte[] data)
-
-
toString
public java.lang.String toString()
-
- Overrides:
-
toString
in class java.lang.Object
-
Copyright © 2001-2005 - Rice Pastry.