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 HADOOP-1608 Relational Algrebra Operators
(Edward Yoon via Stack) (Edward Yoon via Stack)
HADOOP-2198 HTable should have method to return table metadata 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 Release 0.15.1

View File

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