private Set<MockId> getIdsWithPutInSegments(List<LogSegmentName> logSegmentNames) {
    Set<MockId> idsInCompactedLogSegments = new HashSet<>();
    for (LogSegmentName segmentName : logSegmentNames) {
      idsInCompactedLogSegments.addAll(state.getIdsWithPutsInLogSegment(state.log.getSegment(segmentName)));
    }
    return idsInCompactedLogSegments;
  }
Gets all the ids that have PUTs in {@code logSegmentNames}.
@param logSegmentNames the names of log segments whose IDs are required.
@return all the ids that have PUTs in {@code logSegmentNames}.
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java