[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] Match/Context naming
|
I'm not a big fan of Each vs. All as it sounds like Each doesn't include all the results.
Here is some background (why Jeff and I arrived at these names).
MatchQueries are queries in which you can answer an elements inclusion by looking at the element alone. For example, is my name "Ian Bull". I doesn't matter who else is in the room. Context queries, on the other hand, require knowledge of all the other elements. Am I the tallest person in the room? This obviously depends on who else is in the room.
We broke the queries down this way because MatchQueries can be easily done in parallel. While you might be able to do ContextQueries in parallel, there is not general way.
Maybe this will help us arrive at a better naming strategy.
cheers,
ian
On Tue, Feb 23, 2010 at 12:32 PM, Thomas Watson
<tjwatson@xxxxxxxxxx> wrote:
Depending on what we decide on, this will effect the recent changes to the CategoryPublisher application. Here I used the terms context and match to describe the type of _expression_ for an IU query in the category.xml [1] [2].
I agree that context seems like a strange term but I'm not sure I don't have any better suggestions.
Tom
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=303127
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=303128
Thomas Hallgren ---02/23/2010 12:09:25 PM---Hi,
Hi,
Before I did the latest refactoring, the _expression_ equivalent for a
context query was named QLContextQuery and resided in the QL package.
For various reasons, I had to move that to the metadata package instead.
I then renamed it ExpressionContextQuery. So now we have ExpressionQuery
and ExpressionContextQuery. The former implements IMatchQuery and thus
expects a boolean _expression_ to be applied on each row. The latter is a
full query that is applied on all rows.
I'm not at all happy with the names. Both queries are _expression_
queries. And the term 'context' strikes me as a bit odd. What context?
The evaluation context? Query context?
The term 'match' is better. The each candidate is matched against a
boolean _expression_. But I would really like two terms that are related.
'match' and 'context' has no relationship. How about 'each' and 'all' ? I.e.
ExpressionQuery (common super)
EachQuery
AllQuery
Do you have suggestions? I'd like to hear them.
Regards,
Thomas Hallgren
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
--
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484
http://eclipsesource.com |
http://twitter.com/eclipsesource
![GIF image](gifgGdh9Vsx5v.gif)
![GIF image](gifXAnZR0jjRS.gif)