Index: src/main/docbkx/book.xml =================================================================== --- src/main/docbkx/book.xml (revision 1506461) +++ src/main/docbkx/book.xml (working copy) @@ -269,8 +269,8 @@ Scan scan = new Scan(); scan.addColumn(CF, ATTR); -scan.setStartRow( Bytes.toBytes("row")); // start key is inclusive -scan.setStopRow( Bytes.toBytes("row" + (char)0)); // stop key is exclusive +scan.setStartRow(Bytes.toBytes("row")); // start key is inclusive +scan.setStopRow(Bytes.toBytes("rox")); // stop key is exclusive ResultScanner rs = htable.getScanner(scan); try { for (Result r = rs.next(); r != null; r = rs.next()) { @@ -280,6 +280,8 @@ } + Note that generally the easiest way to specify a specific stop point for a scan is by using the InclusiveStopFilter class. +
Delete