public void setProgressIndex(ProgressIndex progressIndex) {
    if (progressIndex == null) {
      return;
    }

    maxProgressIndex = progressIndex;

    PipeTsFileEpochProgressIndexKeeper.getInstance()
        .updateProgressIndex(getDataRegionId(), getTsFilePath(), maxProgressIndex);
  }
@return is this tsfile resource in a TsFileResourceList
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/TsFileResource.java