String[] getSwapSegmentsInUse() throws StoreException {
    String[] tempSegments = dataDir.list(TEMP_LOG_SEGMENTS_FILTER);
    if (tempSegments == null) {
      throw new StoreException("Error occurred while listing files in data dir:" + dataDir.getAbsolutePath(),
          StoreErrorCodes.IOError);
    }
    return tempSegments;
  }
@return an array of temporary log segment files this compactor is currently using.
ambry-store/src/main/java/com/github/ambry/store/BlobStoreCompactor.java