Package org.apache.hadoop.util.bloom

Examples of org.apache.hadoop.util.bloom.BloomFilter


   
  }
 
  public static Filter NewBloomInstance( double c, int n, int k) {
    LOG.info("Creating new Bloom filter C = " + c + " N =  " + n  + " K = " + k );
    BloomFilter dbf = new BloomFilter((int)Math.ceil(c*n),
              k , DEFAULT_HASH_TYPE);
    return dbf;
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.util.bloom.BloomFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.