hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mubarak Seyed (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-4170) createTable java doc needs to be improved
Date Fri, 12 Aug 2011 23:13:27 GMT

     [ 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

        

Mime
View raw message