Package com.taobao.top.analysis.util.bloom

Examples of com.taobao.top.analysis.util.bloom.ByteBloomFilter


  }
 
  DistinctCountEntryValue createDCEntryValue(ReportEntry entry)
  {
    DistinctCountEntryValue distinctEntryValue = new DistinctCountEntryValue();
    ByteBloomFilter bloomFilter;
   
    //240k
    int maxKeys = 100000;
    float errorRate = 0.0001F;
   
    if (entry.getAdditions().get(AnalysisConstants.ANALYSIS_BLOOM_MAXKEYS) != null)
      maxKeys = (Integer)entry.getAdditions().get(AnalysisConstants.ANALYSIS_BLOOM_MAXKEYS);
   
    if (entry.getAdditions().get(AnalysisConstants.ANALYSIS_BLOOM_ERRORRATE) != null)
      errorRate = (Float)entry.getAdditions().get(AnalysisConstants.ANALYSIS_BLOOM_ERRORRATE);
     
    bloomFilter = new ByteBloomFilter(maxKeys,errorRate,1);
   
    distinctEntryValue.setBloomFilter(bloomFilter);
   
    return distinctEntryValue;
  }
View Full Code Here

TOP

Related Classes of com.taobao.top.analysis.util.bloom.ByteBloomFilter

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.