You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Lars Hofhansl (Updated) (JIRA)" <ji...@apache.org> on 2012/01/04 05:44:39 UTC

[jira] [Updated] (HBASE-5118) Fix Scan documentation

     [ https://issues.apache.org/jira/browse/HBASE-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Hofhansl updated HBASE-5118:
---------------------------------

    Attachment: 5118.txt

How about this?
                
> 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
>         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