QueryResultsBase¶
- class lsst.daf.butler.registry.queries.QueryResultsBase¶
- Bases: - LimitedQueryResultsBase- Abstract base class defining functions shared by several of the other QueryResults classes. - Methods Summary - limit(limit[, offset])- Make the iterator return limited number of records. - order_by(*args)- Make the iterator return ordered results. - Methods Documentation - abstract limit(limit: int, offset: int | None = 0) Self¶
- Make the iterator return limited number of records. - Parameters:
- Returns:
- resulttyping.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:
- *argsstr
- Names of the columns/dimensions to use for ordering. Column name can be prefixed with minus ( - -) to use descending ordering.
 
- *args
- Returns:
- resulttyping.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.