}
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;
}