HBASE-936 REST Interface: enable to get numbers of rows from scanner interface

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@708632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-10-28 18:51:53 +00:00
parent cb41078c8d
commit 52b20f4b18
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,13 @@ public interface Scanner extends Closeable, Iterable<RowResult> {
*/
public RowResult next() throws IOException;
/**
* @param nbRows number of rows to return
* @return Between zero and <param>nbRows</param> RowResults
* @throws IOException
*/
public RowResult[] next(int nbRows) throws IOException;
/**
* Closes the scanner and releases any resources it has allocated
*/