public void writeData(int id, Input d) {
    for (InvertedIndex<?, ?, Input> index : myIndex.getIndices()) {
      index.mapInputAndPrepareUpdate(id, d).compute();
    }
  }
public void writeData(int id, Input d)