[teiid-issues] [JBoss JIRA] (TEIID-2371) Provide a callback when there are no results for a query incase of asynchronous queries

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Sun Feb 3 08:43:51 EST 2013


    [ https://issues.jboss.org/browse/TEIID-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751939#comment-12751939 ] 

Steven Hawkins commented on TEIID-2371:
---------------------------------------

> So as beforeNextExecution gets called in between the executions this doesn't perfectly identify the empty result set.

A "has results flag" or a counter of the rows processed in onRow will identify if the results were empty when beforeNextExecution is called.  You could even use the ResultSet.getRow() call - keeping in mind that it have a dummy row for each execution that identifies the end of results.

None of these approaches would fail to detect empty results.
                
> Provide a callback when there are no results for a query incase of asynchronous queries
> ---------------------------------------------------------------------------------------
>
>                 Key: TEIID-2371
>                 URL: https://issues.jboss.org/browse/TEIID-2371
>             Project: Teiid
>          Issue Type: Feature Request
>            Reporter: Vineela Gampa
>            Assignee: Steven Hawkins
>         Attachments: EmptyResultSetAsyncTest.java, ExecuteAsyncContinously.java
>
>
> When a query doesn,t return results , please provide a callback method indicating end of results. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list