public long getTotalLinkedTsfileSize() {
    return hardlinkOrCopiedFileToPipeTsFileResourceMap.values().stream()
        .mapToLong(
            resource -> {
              try {
                return resource.getFileSize();
              } catch (Exception e) {
                LOGGER.warn("failed to get file size of linked TsFile {}: ", resource, e);
                return 0;
              }
            })
        .sum();
  }
Cache maps of the TsFile for further use.

@return {@code true} if the maps are successfully put into cache or already cached. {@code
    false} if they can not be cached.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/tsfile/PipeTsFileResourceManager.java