[ 
https://issues.apache.org/jira/browse/HBASE-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180122#comment-13180122
 ] 

Hudson commented on HBASE-5118:
-------------------------------

Integrated in HBase-TRUNK #2612 (See 
[https://builds.apache.org/job/HBase-TRUNK/2612/])
    HBASE-5118 Fix Scan documentation (Lars H)

larsh : 
Files : 
* /hbase/trunk/src/docbkx/book.xml
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/Scan.java

                
> 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
>             Fix For: 0.94.0
>
>         Attachments: 5118.txt
>
>
> 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