private FileSpan getFileSpanForLogSegments(List<LogSegmentName> logSegments) {
    LogSegment first = state.log.getSegment(logSegments.get(0));
    LogSegment last = state.log.getSegment(logSegments.get(logSegments.size() - 1));
    Offset start = new Offset(first.getName(), first.getStartOffset());
    Offset end = new Offset(last.getName(), last.getEndOffset());
    return new FileSpan(start, end);
  }
@param logSegments the log names of the log segments that should be under the returned {@link FileSpan}
@return a {@link FileSpan} that covers the given {@code logSegments}
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java