org.apache.hadoop.hbase.client
Interface Scanner

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

public interface Scanner
extends Closeable, Iterable<RowResult>

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
 RowResult next()
          Grab the next row's worth of values.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

next

RowResult next()
               throws IOException
Grab the next row's worth of values. The scanner will return a RowResult that contains both the row's key and a map of byte[] column names to Cell value objects. The data returned will only contain the most recent data value for each row that is not newer than the target time passed when the scanner was created.

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

close

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

Specified by:
close in interface Closeable


Copyright © 2008 The Apache Software Foundation