rice.p2p.glacier.v2
Class BloomFilter
java.lang.Object
rice.p2p.glacier.v2.BloomFilter
- All Implemented Interfaces:
- Serializable
public class BloomFilter
- extends Object
- implements Serializable
- See Also:
- Serialized Form
BloomFilter
public BloomFilter(int length,
int[] hashParams)
BloomFilter
public BloomFilter(int length,
int numHashes,
RandomSource rand)
BloomFilter
public BloomFilter(InputBuffer buf)
throws IOException
- Throws:
IOException
add
public void add(byte[] data)
contains
public boolean contains(byte[] data)
toString
public String toString()
- Overrides:
toString in class Object
serialize
public void serialize(OutputBuffer buf)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.