[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] Using p2 expression or QL to query all IUs which provide a capability in a specific namespace
- From: Thomas Hallgren <thomas@xxxxxxx>
- Date: Tue, 23 Feb 2010 20:12:52 +0100
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:18.104.22.168) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b1 Thunderbird/3.0.1
On 02/23/2010 07:25 PM, Thomas Watson wrote:
Yes. The latest can only act on instances that implements the
IVersionedId interface. It will collect the instances in a map keyed by
id and discard all but the latest version. You got the same result
before using the LatestIUVersionQuery in a query pipe.
This is where I got confused.
everything.select(<some selection expression>).latest()
Here it seems like everything.select(<some selection expression>)
would return a collection of IUs. Then the latest() would just go
through the collection of IUs regardless of the id and find the one
that has the largest version and the result would be a single IU. Does
latest() actually pick the latest version of each group of IUs with
the same id?