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 AEA921012C for ; Tue, 15 Oct 2013 08:05:59 +0000 (UTC) Received: (qmail 14117 invoked by uid 500); 15 Oct 2013 08:05:49 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 14078 invoked by uid 500); 15 Oct 2013 08:05:47 -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 14031 invoked by uid 99); 15 Oct 2013 08:05:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 08:05:44 +0000 Date: Tue, 15 Oct 2013 08:05:44 +0000 (UTC) From: "Gabriel Reid (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-9763) Scan javadoc doesn't fully capture semantics of start and stop row MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Gabriel Reid created HBASE-9763: ----------------------------------- Summary: Scan javadoc doesn't fully capture semantics of start and stop row Key: HBASE-9763 URL: https://issues.apache.org/jira/browse/HBASE-9763 Project: HBase Issue Type: Bug Components: documentation Reporter: Gabriel Reid Priority: Minor The current javadoc for Scan#setStartRow and Scan#setStopRow methods don't accurately capture the semantics of the use of row prefix values. Both methods describe the use of a trailing null byte to change the inclusive/exclusive the respective semantics of setStartRow and setStopRow. The use of a trailing null byte for start row exclusion only works in the case that exact full matching is done on row keys. The use of a trailing null byte for stop row inclusion has even more limitations (see HBASE-9035). The basic example is having the following rows: {code} AAB ABB BBC BCC {code} Setting the start row to A and the stop row to B will include AAB and AB. Setting the start row to A\x0 and the stop row to B\x0 will result in the same two rows coming out of the scan, instead of having an effect on the inclusion/exclusion semantics. -- This message was sent by Atlassian JIRA (v6.1#6144)