void addFilePathToMap(long queryId, TsFileResource tsFile, boolean isClosed) {
    Map<Long, Map<TsFileResource, TsFileResource>> pathMap =
        isClosed ? sealedFilePathsMap : unsealedFilePathsMap;
    // Although there are no concurrency issues here at the moment, I've implemented thread-safe
    // code here to avoid leaving holes for future newcomers.
    pathMap
        .get(queryId)
        .computeIfAbsent(
            tsFile,
            k -> {
              FileReaderManager.getInstance().increaseFileReaderReference(tsFile, isClosed);
              return k;
            });
  }
Increase the usage reference of filePath of job id. Before the invoking of this method, <code>
this.setqueryIdForCurrentRequestThread</code> has been invoked, so <code>
sealedFilePathsMap.get(queryId)</code> or <code>unsealedFilePathsMap.get(queryId)</code> must
not return null.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/read/control/QueryFileManager.java