You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/01/24 21:29:39 UTC

[jira] [Updated] (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 ]

James Taylor updated PHOENIX-2234:
----------------------------------
    Labels: pherf  (was: )

> [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
>              Labels: pherf
>
> 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)