[ 
https://issues.apache.org/jira/browse/HBASE-4170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu reassigned HBASE-4170:
-----------------------------

    Assignee: Mubarak Seyed

> 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
>            Assignee: Mubarak Seyed
>             Fix For: 0.90.5
>
>         Attachments: create_table_javadoc_HBASE_4170.patch
>
>
> 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

        

Reply via email to