diff --git a/src/main/docbkx/book.xml b/src/main/docbkx/book.xml
index 331986faee5..1bbd4bae0c3 100644
--- a/src/main/docbkx/book.xml
+++ b/src/main/docbkx/book.xml
@@ -269,8 +269,8 @@ HTable htable = ... // instantiate HTable
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 @@ try {
}
+ Note that generally the easiest way to specify a specific stop point for a scan is by using the InclusiveStopFilter class.
+ Delete