hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19051) Add new split algorithm for num string
Date Thu, 19 Oct 2017 16:43:00 GMT

    [ 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)

Mime
View raw message