[infinispan-dev] Query iterator question

Bryan Grunow bgrunow at rim.com
Fri Nov 20 18:38:14 EST 2009


I didn't get an answer on the message board so I figured I'd try here.

 

I can only get query results from the cache if the key in the cache is a
String. 

 

I looked at the code in LazyIterator (I didn't check EagerIterator since
it fails so I'm assuming the code is similar) and there is a line that
retrieves the documentId from the extractor and casts it as a String. 

 

The cast works but the documentId (the key) is entered in the cache as
an Integer so the lookup fails. The result count is correct so I know it
finds the results correctly but the lookup fails so I get a null in the
iterator.

 

Thanks,

 

Bryan


---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20091120/2de79998/attachment-0002.html 


More information about the infinispan-dev mailing list