On Aug 21, 2009, at 8:23 AM, Mark Miller wrote:
Grant Ingersoll wrote:
On Aug 20, 2009, at 3:44 PM, Mark Miller wrote:
And what is the purpose of the marker interface PayloadQuery?
Is there a use case for this?
At the time I was adding it, I was thinking about adding a Payload
query that took in other Payload queries, i.e. something like:
CoolNewQuery(PayloadQuery [] clauses), but then I found a different
way to do it.
Still, it seems like there should be a way of, in certain cases,
distinguishing Payload queries from SpanQueries, and there currently
isn't.
I'm fine with removing it until I have a more concrete reason for it.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org
Thanks Grant - my though is just - well what can you do knowing its a
Payload query? The interface defines no methods - so I just can't come
up with a use case myself ... to do anything, you'd have to know the
actual class of the Query anyway right?
Marker interfaces just give you a little bit of type safety. We can
remove it. When the time comes, it will be more obvious as to what
should be in a payload query and we can make the decision then. I
will remove it.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org