You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Jan Fernando (JIRA)" <ji...@apache.org> on 2015/09/05 00:14:45 UTC
[jira] [Created] (PHOENIX-2234) [Pherf] Add attribute to
dataSequence column attribute to support encoding sequence in different
formats e.g. base62
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)