LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, cassandra.cluster.Session session, str schema_file, Optional[str] extra_schema_file=None, str prefix="", str packing="none", bool time_partition_tables=False) |
str | tableName (self, ApdbTables table_name) |
Mapping[str, ColumnDef] | getColumnMap (self, ApdbTables table_name) |
List[str] | partitionColumns (self, ApdbTables table_name) |
List[str] | clusteringColumns (self, ApdbTables table_name) |
None | makeSchema (self, bool drop=False, Optional[Tuple[int, int]] part_range=None) |
List[ColumnDef] | packedColumns (self, ApdbTables table_name) |
Public Attributes | |
tableSchemas | |
Class for management of APDB schema. Parameters ---------- session : `cassandra.cluster.Session` Cassandra session object schema_file : `str` Name of the YAML schema file. extra_schema_file : `str`, optional Name of the YAML schema file with extra column definitions. prefix : `str`, optional Prefix to add to all schema elements. packing : `str` Type of packing to apply to columns, string "none" disable packing, any other value enables it. time_partition_tables : `bool` If True then schema will have a separate table for each time partition.
Definition at line 39 of file apdbCassandraSchema.py.
def lsst.dax.apdb.apdbCassandraSchema.ApdbCassandraSchema.__init__ | ( | self, | |
cassandra.cluster.Session | session, | ||
str | schema_file, | ||
Optional[str] | extra_schema_file = None , |
||
str | prefix = "" , |
||
str | packing = "none" , |
||
bool | time_partition_tables = False |
||
) |
Definition at line 71 of file apdbCassandraSchema.py.
List[str] lsst.dax.apdb.apdbCassandraSchema.ApdbCassandraSchema.clusteringColumns | ( | self, | |
ApdbTables | table_name | ||
) |
Return a list of columns used for clustering. Parameters ---------- table_name : `ApdbTables` Table name in APDB schema Returns ------- columns : `list` of `str` Names of columns for used for partitioning.
Definition at line 163 of file apdbCassandraSchema.py.
Mapping[str, ColumnDef] lsst.dax.apdb.apdbCassandraSchema.ApdbCassandraSchema.getColumnMap | ( | self, | |
ApdbTables | table_name | ||
) |
Returns mapping of column names to Column definitions. Parameters ---------- table_name : `ApdbTables` One of known APDB table names. Returns ------- column_map : `dict` Mapping of column names to `ColumnDef` instances.
Definition at line 126 of file apdbCassandraSchema.py.
None lsst.dax.apdb.apdbCassandraSchema.ApdbCassandraSchema.makeSchema | ( | self, | |
bool | drop = False , |
||
Optional[Tuple[int, int]] | part_range = None |
||
) |
Create or re-create all tables. Parameters ---------- drop : `bool` If True then drop tables before creating new ones. part_range : `tuple` [ `int` ] or `None` Start and end partition number for time partitions, end is not inclusive. Used to create per-partition DiaObject, DiaSource, and DiaForcedSource tables. If `None` then per-partition tables are not created.
Definition at line 182 of file apdbCassandraSchema.py.
List[ColumnDef] lsst.dax.apdb.apdbCassandraSchema.ApdbCassandraSchema.packedColumns | ( | self, | |
ApdbTables | table_name | ||
) |
Return set of columns that are packed into BLOB. Parameters ---------- table_name : `ApdbTables` Name of the table. Returns ------- columns : `list` [ `ColumnDef` ] List of column definitions. Empty list is returned if packing is not configured.
Definition at line 288 of file apdbCassandraSchema.py.
List[str] lsst.dax.apdb.apdbCassandraSchema.ApdbCassandraSchema.partitionColumns | ( | self, | |
ApdbTables | table_name | ||
) |
Return a list of columns used for table partitioning. Parameters ---------- table_name : `ApdbTables` Table name in APDB schema Returns ------- columns : `list` of `str` Names of columns for used for partitioning.
Definition at line 143 of file apdbCassandraSchema.py.
str lsst.dax.apdb.apdbCassandraSchema.ApdbCassandraSchema.tableName | ( | self, | |
ApdbTables | table_name | ||
) |
Return Cassandra table name for APDB table.
Definition at line 121 of file apdbCassandraSchema.py.
|
inherited |
Definition at line 178 of file apdbSchema.py.