ParquetFormatter

class lsst.daf.butler.formatters.parquet.ParquetFormatter(fileDescriptor: FileDescriptor, dataId: DataCoordinate, writeParameters: dict[str, Any] | None = None, writeRecipes: dict[str, Any] | None = None)

Bases: Formatter

Interface for reading and writing Arrow Table objects to and from Parquet files.

Attributes Summary

extension

Methods Summary

read([component])

Read a Dataset.

write(inMemoryDataset)

Write a Dataset.

Attributes Documentation

extension = '.parq'

Methods Documentation

read(component: str | None = None) Any

Read a Dataset.

Parameters:
componentstr, optional

Component to read from the file. Only used if the StorageClass for reading differed from the StorageClass used to write the file.

Returns:
inMemoryDatasetobject

The requested Dataset.

write(inMemoryDataset: Any) None

Write a Dataset.

Parameters:
inMemoryDatasetobject

The Dataset to store.