ePOST API

rice.p2p.glacier.v2
Class BloomFilter

java.lang.Object
  extended by 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

Constructor Summary
BloomFilter(int length, int[] hashParams)
           
BloomFilter(int length, int numHashes, RandomSource rand)
           
 
Method Summary
 void add(byte[] data)
           
 boolean contains(byte[] data)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BloomFilter

public BloomFilter(int length,
                   int[] hashParams)

BloomFilter

public BloomFilter(int length,
                   int numHashes,
                   RandomSource rand)
Method Detail

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.