phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Fernando (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-2234) [Pherf] Add attribute to dataSequence column attribute to support encoding sequence in different formats e.g. base62
Date Fri, 04 Sep 2015 22:14:45 GMT
Jan Fernando created PHOENIX-2234:
-------------------------------------

             Summary: [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


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)

Mime
View raw message