public void unpinTsFileResource(final TsFileResource resource) throws IOException {
    final File pinnedFile = getHardlinkOrCopiedFileInPipeDir(resource.getTsFile());
    decreaseFileReference(pinnedFile);

    if (resource.sharedModFileExists()) {
      decreaseFileReference(resource.getSharedModFile().getFile());
    }
  }
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