phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pariksheet Barapatre <pbarapa...@gmail.com>
Subject Re: Salt key hash code logic
Date Tue, 23 Sep 2014 13:59:34 GMT
Yeah.. I saw that .. I am not getting what will be the offset

Thanks
Pari

On 23/09/2014, James Taylor <jamestaylor@apache.org> wrote:
> See SaltingUtil.getSaltingByte(byte[] value, int offset, int length,
> int bucketNum)
>
> On Mon, Sep 22, 2014 at 12:07 AM, Pariksheet Barapatre
> <pbarapatre@gmail.com> wrote:
>> Hello All,
>>
>> When I create phoenix table with salting how it calculates SALT hex.
>>
>> e.g.
>> CREATE TABLE TEST.PHOENIX_TEST
>> (
>> TDM INTEGER NOT NULL
>> ,RTYP VARCHAR NOT NULL
>> ,SSID VARCHAR NOT NULL
>> ,D.AGE UNSIGNED_INT
>> ,D.CAT VARCHAR
>> CONSTRAINT PK PRIMARY KEY (TDM,RTYP,SSID)
>> )
>> SALT_BUCKETS = 20
>> ;
>>
>> WHEN I do UPSERT -
>>
>> UPSERT INTO TEST.PHOENIX_TEST
>> VALUES(2014,'5','JHDHHDSSGA',26,'Education');
>>
>> What will be the salt key for above insert or how phoenix will calculate
>> SALT Hex.
>>
>>
>> Cheers,
>> Pari
>


-- 
Cheers,
Pari

Mime
View raw message