Пример #1
0
 @Override
 public void update(IndexableObject object) throws IOException {
   logger.info("update {} = {}", object.toString(), object.build());
   data.put(object, object.build());
   counter++;
   logger.info("size after update {}", data.size());
 }
Пример #2
0
 @Override
 public void index(IndexableObject object, boolean create) throws IOException {
   logger.info("index {} = {}", object.toString(), object.build());
   data.put(object, object.build());
   counter++;
   logger.info("size after insert {}", data.size());
 }
Пример #3
0
 @Override
 public void delete(IndexableObject object) throws IOException {
   logger.info("delete {}", object.toString());
   data.remove(object);
   counter--;
   logger.info("size after delete {}", data.size());
 }