RowMapping¶
- class lsst.daf.relation.iteration.RowMapping(unique_key: Sequence[ColumnTag], rows: Mapping[tuple, Mapping[ColumnTag, Any]])¶
- Bases: - MaterializedRowIterable- A - RowIterablebacked by a- Mapping.- Parameters:
- unique_keySequence[ColumnTag]
- Sequence of columns to extract into a - tupleto use as keys in the mapping, guaranteeing uniqueness over these columns.
- rowscollections.abc.Mapping
- Nested mapping with - tuplekeys and row values, where each row is (as usual for- RowIterabletypes) itself a- Mappingwith- ColumnTagkeys.
 
- unique_key
 - Methods Summary - Convert this iterable to one that holds its rows in a Python collection of some kind, instead of generating them lazily. - sliced(start, stop)- Apply a slice operation to this - RowIterable.- to_mapping(unique_key)- Convert this iterable to a - RowMapping, unless it already is one.- Convert this iterable to a - RowSequence, unless it already is one.- Methods Documentation - materialized() MaterializedRowIterable¶
- Convert this iterable to one that holds its rows in a Python collection of some kind, instead of generating them lazily. - Returns:
- rowsMaterializedRowIterable
- A - RowIterablethat isn’t lazy.
 
- rows
 
 - sliced(start: int, stop: int | None) RowIterable¶
- Apply a slice operation to this - RowIterable.- Parameters:
- Returns:
- rowsRowIterable
- Iterable representing the slice. May or may not be lazy. 
 
- rows
 
 - to_mapping(unique_key: Sequence[ColumnTag]) RowMapping¶
- Convert this iterable to a - RowMapping, unless it already is one.- Parameters:
- Returns:
- rowsRowMapping
- A - RowIterablebacked by a mapping.
 
- rows
 
 - to_sequence() RowSequence¶
- Convert this iterable to a - RowSequence, unless it already is one.- Returns:
- rowsRowSequence
- A - RowIterablebacked by a sequence.
 
- rows