public void testApproximateElementCount() { int numInsertions = 1000; BloomFilter<Integer> bf = BloomFilter.create(Funnels.integerFunnel(), numInsertions); bf.put(-1); for (int i = 0; i < numInsertions; i++) { bf.put(i); } assertApproximateElementCountGuess(bf, numInsertions); }
bf.put(Integer.toString(i)); assertApproximateElementCountGuess(bf, numInsertions);
bf.put(Integer.toString(i)); assertApproximateElementCountGuess(bf, numInsertions);
bf.put(Integer.toString(i)); assertApproximateElementCountGuess(bf, numInsertions);
public void testApproximateElementCount() { int numInsertions = 1000; BloomFilter<Integer> bf = BloomFilter.create(Funnels.integerFunnel(), numInsertions); bf.put(-1); for (int i = 0; i < numInsertions; i++) { bf.put(i); } assertApproximateElementCountGuess(bf, numInsertions); }
bf.put(Integer.toString(i)); assertApproximateElementCountGuess(bf, numInsertions);
bf.put(Integer.toString(i)); assertApproximateElementCountGuess(bf, numInsertions);
bf.put(Integer.toString(i)); assertApproximateElementCountGuess(bf, numInsertions);