QueryResultsBase#
- class lsst.daf.butler.registry.queries.QueryResultsBase#
Bases:
LimitedQueryResultsBaseAbstract base class defining functions shared by several of the other QueryResults classes.
Methods Summary
limit(limit)Make the iterator return limited number of records.
order_by(*args)Make the iterator return ordered results.
Methods Documentation
- abstract limit(limit: int) Self#
Make the iterator return limited number of records.
Parameters#
- limit
int Upper limit on the number of returned records.
Returns#
- result
typing.Self Returns
selfinstance which is updated to return limited set of records.
Notes#
This method modifies the iterator in place and returns the same instance to support method chaining. Normally this method is used together with
order_bymethod.- limit
- abstract order_by(*args: str) Self#
Make the iterator return ordered results.
Parameters#
- *args
str Names of the columns/dimensions to use for ordering. Column name can be prefixed with minus (
-) to use descending ordering.
Returns#
- result
typing.Self Returns
selfinstance which is updated to return ordered result.
Notes#
This method modifies the iterator in place and returns the same instance to support method chaining.
- *args