|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalScanner
Internal scanners differ from client-side scanners in that they operate on HStoreKeys and byte[] instead of RowResults. This is because they are actually close to how the data is physically stored, and therefore it is more convenient to interact with them that way. It is also much easier to merge the results across SortedMaps than RowResults.
Additionally, we need to be able to determine if the scanner is doing wildcard column matches (when only a column family is specified or if a column regex is specified) or if multiple members of the same column family were specified. If so, we need to ignore the timestamp to ensure that we get all the family members, as they may have been last updated at different times.
Method Summary | |
---|---|
void |
close()
Closes the scanner and releases any resources it has allocated |
boolean |
isMultipleMatchScanner()
|
boolean |
isWildcardScanner()
|
boolean |
next(HStoreKey key,
SortedMap<byte[],Cell> results)
Grab the next row's worth of values. |
Method Detail |
---|
boolean next(HStoreKey key, SortedMap<byte[],Cell> results) throws IOException
key
- will contain the row and timestamp upon returnresults
- will contain an entry for each column family member and its
value
IOException
void close() throws IOException
close
in interface Closeable
IOException
boolean isWildcardScanner()
boolean isMultipleMatchScanner()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |