Rice Pastry 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(InputBuffer buf)
           
BloomFilter(int length, int[] hashParams)
           
BloomFilter(int length, int numHashes, RandomSource rand)
           
 
Method Summary
 void add(byte[] data)
           
 boolean contains(byte[] data)
           
 void serialize(OutputBuffer buf)
           
 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)

BloomFilter

public BloomFilter(InputBuffer buf)
            throws java.io.IOException
Throws:
java.io.IOException
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

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
Throws:
java.io.IOException

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection