HBASE-2082 TableInputFormat is ignoring input scan's stop row setting

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@894798 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2009-12-31 09:20:12 +00:00
parent e99d776a91
commit e6e56e6269
2 changed files with 5 additions and 2 deletions

View File

@ -146,6 +146,8 @@ Release 0.21.0 - Unreleased
an immediate region server shutdown (Sam Pullara via JD)
HBASE-2078 Add JMX settings as commented out lines to hbase-env.sh
(Lars George via JD)
HBASE-2082 TableInputFormat is ignoring input scan's stop row setting
(Scott Wang via Andrew Purtell)
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -293,8 +293,9 @@ extends InputFormat<ImmutableBytesWritable, Result> {
byte[] splitStart = startRow.length == 0 ||
Bytes.compareTo(keys.getFirst()[i], startRow) >= 0 ?
keys.getFirst()[i] : startRow;
byte[] splitStop = stopRow.length == 0 ||
Bytes.compareTo(keys.getSecond()[i], stopRow) <= 0 ?
byte[] splitStop = (stopRow.length == 0 ||
Bytes.compareTo(keys.getSecond()[i], stopRow) <= 0) &&
keys.getSecond()[i].length > 0 ?
keys.getSecond()[i] : stopRow;
InputSplit split = new TableSplit(table.getTableName(),
splitStart, splitStop, regionLocation);