Github user samaitra commented on the pull request:

    https://github.com/apache/jena/pull/95#issuecomment-212563381
  
    @afs 
    
    Hi Andy
    
    1. When the query is executed first time then resultset iterator is 
obtained and stored as value in the cacheEntry. Once the resultset is iterated 
and written in OutputStream the data stored as value in cacheEntry.In case of 
badly behaving client if one OutputStream is closed the behaviour need to be 
tested for other OutputStream.
    
    2. SPARQL_Query_Cache checks if cacheEntry is present and if it contain 
data then set operation as READ_CACHE and ResponseResultSet writes the cache 
value in OutputStream. If cacheEntry is null then it delegates the 
responsibility of creation of cacheEntry to SPARQL_Query. SPARQL_Query executes 
the query, generates the cache key and initializes the cacheEntry with key as 
query key and value as resultSet.
    
    Regards
    Saikat 


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to