コード例 #1
0
 @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);
 }
コード例 #2
0
 @Override
 public void close() throws IOException {
   bloomFilterDmaList.close();
   super.close();
 }