[teiid-issues] [JBoss JIRA] (TEIID-2224) public int TeiidResultSet.available()

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Sat Sep 22 06:59:34 EDT 2012


     [ https://issues.jboss.org/browse/TEIID-2224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-2224.
-----------------------------------

    Fix Version/s: 8.2
       Resolution: Done


Added the TeiidResultSet interface to expose how many rows past the current position are available.  For non-local connections this may mean a network hop is needed to fetch the results, so this method or other logic may need to account for that later.  The docs were also updated.

Example usage:

resultSet.unwrap(TeiidResultSet.class).available()
                
> public int TeiidResultSet.available()
> -------------------------------------
>
>                 Key: TEIID-2224
>                 URL: https://issues.jboss.org/browse/TEIID-2224
>             Project: Teiid
>          Issue Type: Enhancement
>          Components: JDBC Driver
>            Reporter: Mark Addleman
>            Assignee: Steven Hawkins
>             Fix For: 8.2
>
>
> Expose a new method in TeiidResultSet:  int available() to return the number of rows available in the result set before blocking (contract similar to InputStream available)
> See https://community.jboss.org/thread/205559?tstart=0 for more context

--
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