lsst.dax.apdb g9290983e33+ffdc83c6f7
 
Loading...
Searching...
No Matches
lsst.dax.apdb.apdbReplica.ApdbTableData Class Reference
Inheritance diagram for lsst.dax.apdb.apdbReplica.ApdbTableData:
lsst.dax.apdb.cassandra.cassandra_utils.ApdbCassandraTableData lsst.dax.apdb.sql.apdbSqlReplica.ApdbSqlTableData

Public Member Functions

Sequence[str] column_names (self)
 
Sequence[tuple[str, felis.datamodel.DataType]] column_defs (self)
 
Collection[tuple] rows (self)
 

Detailed Description

Abstract class for representing table data.

Member Function Documentation

◆ column_defs()

Sequence[tuple[str, felis.datamodel.DataType]] lsst.dax.apdb.apdbReplica.ApdbTableData.column_defs ( self)
Return ordered sequence of column names and their types.

Returns
-------
columns : `~collections.abc.Sequence` \
    [`tuple`[`str`, `felis.datamodel.DataType`]]
    Sequence of 2-tuples, each tuple consists of column name and its
    type.

Reimplemented in lsst.dax.apdb.cassandra.cassandra_utils.ApdbCassandraTableData, and lsst.dax.apdb.sql.apdbSqlReplica.ApdbSqlTableData.

◆ column_names()

Sequence[str] lsst.dax.apdb.apdbReplica.ApdbTableData.column_names ( self)
Return ordered sequence of column names in the table.

Returns
-------
names : `~collections.abc.Sequence` [`str`]
    Column names.

Reimplemented in lsst.dax.apdb.cassandra.cassandra_utils.ApdbCassandraTableData, and lsst.dax.apdb.sql.apdbSqlReplica.ApdbSqlTableData.

◆ rows()

Collection[tuple] lsst.dax.apdb.apdbReplica.ApdbTableData.rows ( self)
Return table rows, each row is a tuple of values.

Returns
-------
rows : `~collections.abc.Collection` [`tuple`]
    Collection of tuples.

Reimplemented in lsst.dax.apdb.cassandra.cassandra_utils.ApdbCassandraTableData, and lsst.dax.apdb.sql.apdbSqlReplica.ApdbSqlTableData.


The documentation for this class was generated from the following file: