Fix Scan documentation
----------------------

                 Key: HBASE-5118
                 URL: https://issues.apache.org/jira/browse/HBASE-5118
             Project: HBase
          Issue Type: Sub-task
          Components: documentation
    Affects Versions: 0.94.0
            Reporter: Lars Hofhansl
            Assignee: Lars Hofhansl
            Priority: Trivial


Current documentation for scan states:
{code}
Scan scan = new Scan();
scan.addColumn(Bytes.toBytes("cf"),Bytes.toBytes("attr"));
scan.setStartRow( Bytes.toBytes("row"));                   // start key is 
inclusive
scan.setStopRow( Bytes.toBytes("row" +  new byte[] {0}));  // stop key is 
exclusive
for(Result result : htable.getScanner(scan)) {
  // process Result instance
}
{code}
"row" +  new byte[] {0}  is not correct. That should  "row" + (char)0


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to