Composite row keys are formed by simply concatenating the values together,
with a zero byte character used as a separator after a variable length
type. 

You can check code on PTableImpl#newKey

On 3/3/15, 10:02 PM, "Krishna" <research...@gmail.com> wrote:

>Hi,
>
>How does phoenix store composite primary keys in HBase?
>For example, if the primary key is a composite of two columns:
>col1 short
>col2 integer
>
>Does phoenix concatenate 1 byte short with 4 byte integer to create a 5
>byte array to make HBase rowkey?
>
>Please point me to the code that I can refer for details.
>
>Thanks

Reply via email to