org.apache.hadoop.hbase.client
Interface ResultScanner

All Superinterfaces:
Closeable, Iterable<Result>
All Known Implementing Classes:
AbstractClientScanner, ClientScanner, ClientSmallReversedScanner, ClientSmallScanner, ReversedClientScanner

@InterfaceAudience.Public
@InterfaceStability.Stable
public interface ResultScanner
extends Closeable, Iterable<Result>

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


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

Method Detail

next

Result next()
            throws IOException
Grab the next row's worth of values. The scanner will return a Result.

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

next

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

close

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

Specified by:
close in interface Closeable


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.