@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()); }
@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()); }
@Override public void delete(IndexableObject object) throws IOException { logger.info("delete {}", object.toString()); data.remove(object); counter--; logger.info("size after delete {}", data.size()); }