[
https://issues.apache.org/jira/browse/HBASE-19051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16211332#comment-16211332
]
Ted Yu commented on HBASE-19051:
--------------------------------
{code}
+ } else if(splitClassName.equals(DecStringSplit.class.getSimpleName())) {
{code}
Add space between if and (.
{code}
+ public static class DecStringSplit extends NumStringSplit {
{code}
Since DecStringSplit targets decimal values, change the class name to
DecimalStringSplit.
{code}
+ public abstract static class NumStringSplit implements SplitAlgorithm {
{code}
Change the class name to NumberStringSplit.
> Add new split algorithm for num string
> --------------------------------------
>
> Key: HBASE-19051
> URL: https://issues.apache.org/jira/browse/HBASE-19051
> Project: HBase
> Issue Type: Improvement
> Reporter: Yun Zhao
> Assignee: Yun Zhao
> Priority: Minor
> Attachments: HBASE-19051.master.001.patch
>
>
> We will use the reversed sequential number or phone number as the first part
> of rowkey, there is no split algorithm to create a pre-split table, only by
> specify the split points.
> {code}
> create 't1','f', SPLITS => ['1','2','3','4','5','6','7','8','9']
> {code}
> Add new split algorithm DecStringSplit.
> {code}
> create 't2','f', { NUMREGIONS => 10 , SPLITALGO => 'DecStringSplit' }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)