HADOOP-2296 hbase shell: phantom columns show up from select command

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@599703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2007-11-30 06:35:47 +00:00
parent bf176b63f3
commit 5a465ae05b
2 changed files with 7 additions and 5 deletions

View File

@ -65,6 +65,7 @@ Trunk (unreleased changes)
HADOOP-1608 Relational Algrebra Operators
(Edward Yoon via Stack)
HADOOP-2198 HTable should have method to return table metadata
HADOOP-2296 hbase shell: phantom columns show up from select command
Release 0.15.1

View File

@ -946,15 +946,16 @@ public class HTable implements HConstants {
return true;
}
/**
* {@inheritDoc}
*/
public boolean next(HStoreKey key, SortedMap<Text, byte[]> results) throws IOException {
public boolean next(HStoreKey key, SortedMap<Text, byte[]> results)
throws IOException {
checkClosed();
if (this.closed) {
return false;
}
MapWritable values = null;
// Clear the results so we don't inherit any values from any previous
// calls to next.
results.clear();
do {
values = this.server.next(this.scannerId);
} while (values != null && values.size() == 0 && nextScanner());