phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: Salt key hash code logic
Date Tue, 23 Sep 2014 05:04:37 GMT
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

Mime
View raw message