@Override public long addEvent(Event event, int userId, int eventTypeId) { final BloomFilter bloomFilter = bloomFilterProvider.get(); event.enumerate( new KeyValueCallback() { @Override public void callback(String key, String value) { bloomFilter.add(getBloomFilterKey(key, value)); } }); bloomFilterDmaList.add(bloomFilter); return super.addEvent(event, userId, eventTypeId); }
@Override public void close() throws IOException { bloomFilterDmaList.close(); super.close(); }