You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Mubarak Seyed (JIRA)" <ji...@apache.org> on 2011/08/13 01:13:27 UTC

[jira] [Updated] (HBASE-4170) createTable java doc needs to be improved

     [ 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