hats.catalog.index.index_catalog

hats.catalog.index.index_catalog#

Classes#

IndexCatalog

An index into HATS Catalog for enabling fast lookups on non-spatial values.

Module Contents#

class IndexCatalog(catalog_info: hats.catalog.dataset.table_properties.TableProperties, catalog_path: str | pathlib.Path | upath.UPath | None = None, schema: pyarrow.Schema | None = None, original_schema: pyarrow.Schema | None = None)[source]#

Bases: hats.catalog.dataset.Dataset

An index into HATS Catalog for enabling fast lookups on non-spatial values.

Note that this is not a true “HATS Catalog”, as it is not partitioned spatially.

loc_partitions(ids) list[hats.pixel_math.HealpixPixel][source]#

Find the set of partitions in the primary catalog for the ids provided.

Parameters:
ids

primary catalog for the ids

Returns:
list[HealpixPixel]

partitions of leaf parquet files in the primary catalog that may contain rows for the id values