FileDocCategorySizeDatePackage
BloomFilterFactory.javaAPI DocAzureus 3.0.3.41850Thu Feb 09 19:43:14 GMT 2006com.aelitis.azureus.core.util.bloom

BloomFilterFactory

public class BloomFilterFactory extends Object

Fields Summary
Constructors Summary
Methods Summary
public static BloomFiltercreateAddOnly(int filter_size)

		return( new BloomFilterAddOnly( filter_size ));
	
public static BloomFiltercreateAddRemove4Bit(int filter_size)
Creates a new bloom filter.

param
max_entries The filter size. a size of 10 * expected entries gives a false-positive of around 0.01% 17* -> 0.001 29* -> 0.0001 Each entry takes 1, 4 or 8 bits depending on type So, if 0.01% is acceptable and expected max entries is 100, use a filter size of 1000.
return

		return( new BloomFilterAddRemove4Bit( filter_size ));
	
public static BloomFiltercreateAddRemove8Bit(int filter_size)

		return( new BloomFilterAddRemove8Bit( filter_size ));