You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Karan Singhal (JIRA)" <ji...@apache.org> on 2015/11/20 18:47:11 UTC

[jira] [Assigned] (PHOENIX-2234) [Pherf] Add attribute to dataSequence column attribute to support encoding sequence in different formats e.g. base62

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

Karan Singhal reassigned PHOENIX-2234:
--------------------------------------

    Assignee: Karan Singhal

> [Pherf] Add attribute to dataSequence column attribute to support encoding sequence in different formats e.g. base62
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-2234
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2234
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Jan Fernando
>            Assignee: Karan Singhal
>
> It would be really useful to be able to specify an encoding format for the generated sequence value for a Pherf <column> in the <datamapping> section. Pherf would still generate an integer as it does now, but before appending it to the column it would encode per the configured format.
> For example:
>         <column>
>             <type>CHAR</type>
>             <userDefined>true</userDefined>
>             <dataSequence encoding="Base62">SEQUENTIAL</dataSequence>
>             <length>10</length>
>             <prefix>ABCDEFGH</prefix>
>             <name>MY_PHERF_GENERATED_ID</name>
>         </column>
> So for the 100th sequence Pherf would end up generating like: ABCDEFGH	1c



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)