Index

class lsst.dax.apdb.schema_model.Index(name: str, id: str, columns: list[lsst.dax.apdb.schema_model.Column] = <factory>, expressions: list[str] = <factory>, description: str | None = None, annotations: ~collections.abc.Mapping[str, ~typing.Any] = <factory>)

Bases: object

Index representation.

Attributes Summary

description

Index description.

Methods Summary

from_felis(dm_index, columns)

Convert Felis index definition into instance of this class.

Attributes Documentation

description: str | None = None

Index description.

Methods Documentation

classmethod from_felis(dm_index: Index, columns: Mapping[str, Column]) Index

Convert Felis index definition into instance of this class.

Parameters:
dm_indexfelis.datamodel.Index

Felis index definition.

columnsMapping [str, Column]

Mapping of column ID to Column instance.

Returns:
indexIndex

Converted index definition.