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)
BloomFilter
public BloomFilter(InputBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException
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
serialize
public void serialize(OutputBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.