org.apache.hadoop.hbase.regionserver
Interface KeyValueScanner

All Known Implementing Classes:
KeyValueHeap, MemStore.MemStoreScanner, MinorCompactingStoreScanner

public interface KeyValueScanner

Scanner that returns the next KeyValue.


Method Summary
 void close()
          Close the KeyValue scanner.
 KeyValue next()
          Return the next KeyValue in this scanner, iterating the scanner
 KeyValue peek()
          Look at the next KeyValue in this scanner, but do not iterate scanner.
 boolean seek(KeyValue key)
          Seek the scanner at or after the specified KeyValue.
 

Method Detail

peek

KeyValue peek()
Look at the next KeyValue in this scanner, but do not iterate scanner.

Returns:
the next KeyValue

next

KeyValue next()
Return the next KeyValue in this scanner, iterating the scanner

Returns:
the next KeyValue

seek

boolean seek(KeyValue key)
Seek the scanner at or after the specified KeyValue.

Parameters:
key -
Returns:
true if scanner has values left, false if end of scanner

close

void close()
Close the KeyValue scanner.



Copyright © 2010 The Apache Software Foundation