DataCoordinateQueryResults¶
- final class lsst.daf.butler.DataCoordinateQueryResults(driver: QueryDriver, tree: QueryTree, spec: DataCoordinateResultSpec)¶
Bases:
QueryResultsBaseA query for
DataCoordinateresults.- Parameters:
- driver
QueryDriver Implementation object that knows how to actually execute queries.
- tree
QueryTree Description of the query as a tree of joins and column expressions. The instance returned directly by the
Butler._queryentry point should be constructed viamake_unit_query_tree.- spec
DataCoordinateResultSpec Specification of the query result rows, including output columns, ordering, and slicing.
- driver
Notes
This class should never be constructed directly by users; use
Query.data_idsinstead.Attributes Summary
Whether all data IDs in this iterable contain dimension records.
Methods Summary
count(*[, exact, discard])Count the number of rows this query would return.
Return a results object for which
has_dimension_recordsisTrue.Attributes Documentation
- has_dimension_records¶
Whether all data IDs in this iterable contain dimension records.
Methods Documentation
- count(*, exact: bool = True, discard: bool = False) int¶
Count the number of rows this query would return.
- Parameters:
- exact
bool, optional If
True, run the full query and perform post-query filtering if needed to account for that filtering in the count. IfFalse, the result may be an upper bound.- discard
bool, optional If
True, compute the exact count even if it would require running the full query and then throwing away the result rows after counting them. IfFalse, this is an error, as the user would usually be better off executing the query first to fetch its rows into a new query (or passingexact=False). Ignored ifexact=False.
- exact
- Returns:
- count
int The number of rows the query would return, or an upper bound if
exact=False.
- count
- with_dimension_records() DataCoordinateQueryResults¶
Return a results object for which
has_dimension_recordsisTrue.