void addToIndex(List<IndexEntry> entries, FileSpan fileSpan) throws StoreException {
    validateFileSpan(fileSpan, false);
    for (IndexEntry entry : entries) {
      Offset startOffset = entry.getValue().getOffset();
      Offset endOffset = new Offset(startOffset.getName(), startOffset.getOffset() + entry.getValue().getSize());
      addToIndex(entry, new FileSpan(startOffset, endOffset));
    }
  }
Adds a set of entries to the index
@param entries The entries to be added to the index
@param fileSpan The file span that the entries represent in the log
@throws StoreException
ambry-store/src/main/java/com/github/ambry/store/PersistentIndex.java