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 372F38EBD for ; Fri, 12 Aug 2011 23:13:50 +0000 (UTC) Received: (qmail 81997 invoked by uid 500); 12 Aug 2011 23:13:50 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 81859 invoked by uid 500); 12 Aug 2011 23:13:49 -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 81842 invoked by uid 99); 12 Aug 2011 23:13:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 23:13:49 +0000 X-ASF-Spam-Status: No, hits=-2000.8 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; Fri, 12 Aug 2011 23:13:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 68D08BA7A3 for ; Fri, 12 Aug 2011 23:13:27 +0000 (UTC) Date: Fri, 12 Aug 2011 23:13:27 +0000 (UTC) From: "Mubarak Seyed (JIRA)" To: issues@hbase.apache.org Message-ID: <601356929.35046.1313190807426.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <999280751.12897.1312578511027.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-4170) createTable java doc needs to be improved MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mubarak Seyed updated HBASE-4170: --------------------------------- Affects Version/s: 0.90.2 0.90.3 0.90.4 > createTable java doc needs to be improved > ----------------------------------------- > > Key: HBASE-4170 > URL: https://issues.apache.org/jira/browse/HBASE-4170 > Project: HBase > Issue Type: Improvement > Components: client > Affects Versions: 0.90.1, 0.90.2, 0.90.3, 0.90.4 > Environment: HBase-0.90.1 > Reporter: Mubarak Seyed > Fix For: 0.90.1 > > > HBaseAdmin.createTable() java doc says > public void createTable(HTableDescriptor desc, > byte[][] splitKeys) > throws IOException > Creates a new table with an initial set of empty regions defined by the specified split keys. The total number of regions created will be the number of split keys plus one (the first region has a null start key and the last region has a null end key). Synchronous operation. > If we specify null values for first region start key and last region end key, geting NullPointerException as Arrays.sort compares each element. > I guess the documentation should not talk about null values and explain about splitKeys[][] length as n-1, where n is number of regions. > splitKeys[][] would look like > splitKeys[0] = "key value 1" > .. > splitKeys[n-1] = "key value n-1" -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira