hipscat.catalog.association_catalog.association_catalog
#
Module Contents#
Classes#
A HiPSCat Catalog for enabling fast joins between two HiPSCat catalogs |
- class AssociationCatalog(catalog_info: CatalogInfoClass, pixels: hipscat.catalog.healpix_dataset.healpix_dataset.PixelInputTypes, join_pixels: JoinPixelInputTypes, catalog_path=None, moc: mocpy.MOC | None = None, storage_options: Dict[Any, Any] | None = None)[source]#
Bases:
hipscat.catalog.healpix_dataset.healpix_dataset.HealpixDataset
A HiPSCat Catalog for enabling fast joins between two HiPSCat catalogs
Catalogs of this type are partitioned based on the partitioning of the left catalog. The partition_join_info metadata file specifies all pairs of pixels in the Association Catalog, corresponding to each pair of partitions in each catalog that contain rows to join.
- get_join_pixels() pandas.DataFrame [source]#
Get join pixels listing all pairs of pixels from left and right catalogs that contain matching association rows
- Returns:
pd.DataFrame with each row being a pair of pixels from the primary and join catalogs
- static _get_partition_join_info_from_pixels(join_pixels: JoinPixelInputTypes) hipscat.catalog.association_catalog.partition_join_info.PartitionJoinInfo [source]#