Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AB84B622 for ; Wed, 4 Jan 2012 04:45:43 +0000 (UTC) Received: (qmail 89738 invoked by uid 500); 4 Jan 2012 04:45:42 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 89565 invoked by uid 500); 4 Jan 2012 04:45:32 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 89549 invoked by uid 99); 4 Jan 2012 04:45:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 04:45:27 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 04:45:24 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 36409137EC0 for ; Wed, 4 Jan 2012 04:44:39 +0000 (UTC) Date: Wed, 4 Jan 2012 04:44:39 +0000 (UTC) From: "Lars Hofhansl (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <723791377.3376.1325652279223.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <279145207.2156.1325628759241.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-5118) Fix Scan documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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