You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2015/04/22 02:33:58 UTC

[jira] [Updated] (HBASE-5240) HBase internalscanner.next javadoc doesn't imply whether or not results are appended or not

     [ https://issues.apache.org/jira/browse/HBASE-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Purtell updated HBASE-5240:
----------------------------------
    Resolution: Incomplete
        Status: Resolved  (was: Patch Available)

> HBase internalscanner.next javadoc doesn't imply whether or not results are appended or not
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-5240
>                 URL: https://issues.apache.org/jira/browse/HBASE-5240
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Alex Newman
>         Attachments: 0001-HBASE-5240.-HBase-internalscanner.next-javadoc-doesn.patch
>
>
> Just looking at http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/regionserver/InternalScanner.html. We don't know whether or not the results are appended to results list, or if we always clear it first.
> boolean 	next(List<KeyValue> results)
>           Grab the next row's worth of values.
>  boolean 	next(List<KeyValue> result, int limit)
>           Grab the next row's worth of values with a limit on the number of values to return.
>  
> Method Detail
> next
> boolean next(List<KeyValue> results)
>              throws IOException
>     Grab the next row's worth of values.
>     Parameters:
>         results - return output array 
>     Returns:
>         true if more rows exist after this one, false if scanner is done 
>     Throws:
>         IOException - e
> next
> boolean next(List<KeyValue> result,
>              int limit)
>              throws IOException
>     Grab the next row's worth of values with a limit on the number of values to return.
>     Parameters:
>         result - return output array
>         limit - limit on row count to get 
>     Returns:
>         true if more rows exist after this one, false if scanner is done 
>     Throws:
>         IOException - e



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)