org.apache.hadoop.hbase.client
Interface Scanner

All Superinterfaces:
Closeable, Iterable<RowResult>
All Known Implementing Classes:
HTable.OldClientScanner

Deprecated. See ResultScanner

public interface Scanner
extends Closeable, Iterable<RowResult>

Interface for client-side scanning. Go to HTable to obtain instances.


Method Summary
 void close()
          Deprecated. Closes the scanner and releases any resources it has allocated
 RowResult next()
          Deprecated. Grab the next row's worth of values.
 RowResult[] next(int nbRows)
          Deprecated.  
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

next

RowResult next()
               throws IOException
Deprecated. 
Grab the next row's worth of values.

Returns:
RowResult object if there is another row, null if the scanner is exhausted.
Throws:
IOException

next

RowResult[] next(int nbRows)
                 throws IOException
Deprecated. 
Parameters:
nbRows - number of rows to return
Returns:
Between zero and nbRows Results
Throws:
IOException

close

void close()
Deprecated. 
Closes the scanner and releases any resources it has allocated

Specified by:
close in interface Closeable


Copyright © 2009 The Apache Software Foundation