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.
- limit
- Returns:
- result
typing.Self Returns
selfinstance which is updated to return limited set of records.
- result
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.
- 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.
- *args
- Returns:
- result
typing.Self Returns
selfinstance which is updated to return ordered result.
- result
Notes
This method modifies the iterator in place and returns the same instance to support method chaining.