hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5118) Fix Scan documentation
Date Fri, 06 Jan 2012 06:59:43 GMT

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

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

Integrated in HBase-TRUNK-security #65 (See [https://builds.apache.org/job/HBase-TRUNK-security/65/])
    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

        

Mime
View raw message