> Having a clean implementation of toString(), one would be able to
> reparse a Query with QueryParser. This is something which was discussed
> several times on the dev and user lists. I expect that it will work for
> all queries supported by QueryParser.
Only under certain restrictions. Remember
David Spencer wrote:
Bernhard Messer wrote:
Hi,
I would like to cache query objects in a hash map. My implementation
failed, because not all of the Query classes are implementing the
necessary method: "public int hashCode()". The same counts for the
"public boolean equals (Object o)", "public St
Bernhard Messer wrote:
Hi,
I would like to cache query objects in a hash map. My implementation
failed, because not all of the Query classes are implementing the
necessary method: "public int hashCode()". The same counts for the
"public boolean equals (Object o)", "public String toString(String
Great idea. I am also planning on doing some caching based on query
objects, and I hadn't realized that these weren't implemented.
In the meantime, I guess I can cache an Object that contains a Query,
and traverse the query tree myself to implement missing .hashCode() or
.equals() functionality.