Query optimization

2007-06-11 Thread Bryan Atsatt
Given a list of ModuleDefinition instances, it is obvious how a Repository implementation can do a *linear* search using Query: private List definitions; public List findModuleDefinitions(Query constraint) { List result = new ArrayList(); for(ModuleDefinition def : definitions

Re: Query...

2007-06-04 Thread Bryan Atsatt
yet, to a large centralized repository, etc.). // Bryan Stanley M. Ho wrote: Bryan Atsatt wrote: And we haven't done so in the spec, either. I think we should. Query was not declared as Serializable in the spec because it was unclear if we wanted to allow custom Query implementations and

Re: Query...

2007-06-04 Thread Stanley M. Ho
Bryan Atsatt wrote: And we haven't done so in the spec, either. I think we should. Query was not declared as Serializable in the spec because it was unclear if we wanted to allow custom Query implementations and how it might impact these custom Query implementations. Now that we have de

Re: Query...

2007-05-24 Thread Glyn Normington
If Query is made Serializable, let's make sure it declares a serial version UID to enable serial compatibility of future versions. Glyn Bryan Atsatt <[EMAIL PROTECTED]> wrote on 23/05/2007 19:14:41: > When I designed the Query/Repository model in the prototype, I had it > firml

Query...

2007-05-23 Thread Bryan Atsatt
When I designed the Query/Repository model in the prototype, I had it firmly in my mind that Query should be Serializable, so that it could be sent over the wire to a remote repository. I've described it this way to a number of people. But apparently I forgot to actually declare it. :^) A