2 Replies Latest reply on Aug 25, 2010 8:34 AM by thospfuller

    Query and QueryHelper / Radegast

    thospfuller

      I am working on adding dynamic query methods to the Grails Infinispan plugin such that the developer will be able to execute queries directly on the cache -- for example:

       

      def results = agentCache.query (Agent.class, "weapon", "gun")

       

      in order to make this work at the moment I am using the QueryHelper, which is documented as a temporary helper class here:

       

      http://docs.jboss.org/infinispan/4.0/apidocs/org/infinispan/query/backend/QueryHelper.html

       

      Do you happen to have any idea what the solution looks like for 4.1.0 (production) or is the Infinispan team still working on this? I've looked around for some examples and everything I've come across seems to rely on the QueryHelper. What I'm looking for is an example of code that does not rely on the aforementioned helper class.

       

      Also do you have any idea when this will be available?

       

      I'd like to implement this once and not have to revisit it later.

       

      Thanks for your help,

       

      Tom

        • 1. Re: Query and QueryHelper / Radegast
          manik

          We're still working on it.  We should finalise it in 5.0.0, but basically it would be such that you wouldn't need to define your types upfront in a QueryHelper.  You would directly be able to use the QueryFactory on the cache to create queries, as long as you have the <indexing enabled="true" ... /> config parameter set.

          • 2. Re: Query and QueryHelper / Radegast
            thospfuller

            Ok -- that's excellent. It looks like changes on my end would be quite minimal then -- which is what I was hoping for.

             

            Tom