org.apache.hadoop.hbase.client
Class HTable.OldClientScanner

java.lang.Object
  extended by org.apache.hadoop.hbase.client.HTable.OldClientScanner
All Implemented Interfaces:
Closeable, Iterable<RowResult>, Scanner
Enclosing class:
HTable

protected class HTable.OldClientScanner
extends Object
implements Scanner

Scanner implementation made on top of a ResultScanner.


Method Summary
 void close()
          Closes the scanner and releases any resources it has allocated
protected  void initialize()
           
 Iterator<RowResult> iterator()
           
 RowResult next()
          Grab the next row's worth of values.
 RowResult[] next(int nbRows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

protected void initialize()
                   throws IOException
Throws:
IOException

close

public void close()
Description copied from interface: Scanner
Closes the scanner and releases any resources it has allocated

Specified by:
close in interface Closeable
Specified by:
close in interface Scanner

next

public RowResult next()
               throws IOException
Description copied from interface: Scanner
Grab the next row's worth of values.

Specified by:
next in interface Scanner
Returns:
RowResult object if there is another row, null if the scanner is exhausted.
Throws:
IOException

next

public RowResult[] next(int nbRows)
                 throws IOException
Specified by:
next in interface Scanner
Parameters:
nbRows - number of rows to return
Returns:
Between zero and nbRows Results
Throws:
IOException

iterator

public Iterator<RowResult> iterator()
Specified by:
iterator in interface Iterable<RowResult>


Copyright © 2009 The Apache Software Foundation