Changeset 12951 for main/waeup.kofa/trunk/src/waeup/kofa/catalog.py
- Timestamp:
- 15 May 2015, 08:56:17 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/catalog.py
r11483 r12951 32 32 @implementer(IQuery) 33 33 class KofaQuery(Query): 34 """A hurry.query-like query that supports also ``apply``. 34 """A `hurry.query.query.Query` compatible query that also supports 35 retrival of plain ``Bree`` result sets as used inside a catalog. 36 37 Like `hurry.query.query.Query` objects, `KofaQuery` is some kind 38 of a meta query or 'compound query' that can give the cataloged 39 objects (or their int ids) matching one or more 'subqueries'. 40 41 This way you can search for objects (or their int ids) that match 42 several criteria at the same time. See ``examples`` section below. 43 44 A singleton instance of this class is also available as global 45 utility. 46 47 A hurry.query-like query that supports also ``apply``. 35 48 """ 36 49 def apply(self, query): 37 """Get a catalog's BTree set of intids conforming to a query. 50 """Get the list of int ids (a `BTree` result set) for objects 51 determined by ``query``. 52 53 The list of int ids is less expensive to compute than the 54 complete search results and sufficient, for instance, when you 55 only need the number of objects that match a query and not the 56 objects themselves. 38 57 """ 39 58 return query.apply()
Note: See TracChangeset for help on using the changeset viewer.