xpark.dataset.checkpoint.build_checkpoint_filesystem#
- xpark.dataset.checkpoint.build_checkpoint_filesystem(path: str, storage_options: dict[str, Any] | None = None) FileSystem | None#
Build a PyArrow filesystem for checkpoint I/O from Xpark storage options.
s3:///cos://andtclake://always return aPyFileSystemwrapping the fsspec layer; other schemes are built from explicitstorage_optionsentries. ReturnsNonewhen Ray/PyArrow can infer the filesystem alone (local paths, unknown schemes without custom options).- Parameters:
path – Checkpoint path (local or URI such as
s3://.../cos://...).storage_options – Xpark
DatasetContext.storage_optionsmapping (keyed by protocol, e.g.{"cos": {...}}).
- Returns:
A PyArrow filesystem for
CheckpointConfig.override_filesystem, orNoneto letCheckpointConfiginfer the filesystem.