Github user samaitra commented on the pull request:

    https://github.com/apache/jena/pull/95#issuecomment-158991909
  
    The CacheEntry is a wrapper object to hold the Query ResultSet and data 
byte array. The CacheAction is used to make a decision on filling the cache or 
read from cache. The design is based on an issue that I faced during iterating 
over result for select queries. The ask,construct and describe queries 
ResultSet can be cached and data can be fetched from cache but incase of select 
queries while iterating over results I faced error as ResultSet is closed, 
Query execution error. So, only caching the ResultSet is not sufficient to 
build the response  body for select queries. This is also the reason while I 
needed to replicate the ResultSet data while it is written to ServletOut. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to