DatasetQueryResults¶
- class lsst.daf.butler.registry.queries.DatasetQueryResults¶
- Bases: - LimitedQueryResultsBase,- Iterable[- DatasetRef]- An interface for objects that represent the results of queries for datasets. - Methods Summary - Group results by parent dataset type. - expanded()- Return a - DatasetQueryResultsfor which- DataCoordinate.hasRecordsreturns- Truefor all data IDs in returned- DatasetRefobjects.- Insert this query's results into a temporary table. - Methods Documentation - abstract byParentDatasetType() Iterator[ParentDatasetQueryResults]¶
- Group results by parent dataset type. - Returns:
- iterIterator[ParentDatasetQueryResults]
- An iterator over - DatasetQueryResultsinstances that are each responsible for a single parent dataset type.
 
- iter
 
 - abstract expanded() Self¶
- Return a - DatasetQueryResultsfor which- DataCoordinate.hasRecordsreturns- Truefor all data IDs in returned- DatasetRefobjects.- Returns:
- expandedDatasetQueryResults
- Either a new - DatasetQueryResultsinstance or- self, if it is already expanded.
 
- expanded
 - Notes - As with - DataCoordinateQueryResults.expanded, it may be more efficient to call- materializebefore expanding data IDs for very large result sets.
 - abstract materialize() AbstractContextManager[Self]¶
- Insert this query’s results into a temporary table. - Returns:
- contexttyping.ContextManager[DatasetQueryResults]
- A context manager that ensures the temporary table is created and populated in - __enter__(returning a results object backed by that table), and dropped in- __exit__. If- selfis already materialized, the context manager may do nothing (reflecting the fact that an outer context manager should already take care of everything else).
 
- context