Thanks QiFan,

Following your hint, I found the ExHDPHash::eval() and corresponding hash() 
functions. Trying to understand them.

Thanks,
Ming

-----邮件原件-----
发件人: Qifan Chen [mailto:[email protected]] 
发送时间: 2016年2月12日 21:32
收件人: dev <[email protected]>
主题: Re: how the SALT is caculated?

Hi Ming,

In trafodion,

"salt using 8 partitions on A" is equivalent to "hash2partfunc(a for 8)".

"salt using 16 partitions on (a,b)" is equivalent to "hash2partfunc(a,b for 
16)".


Thanks --Qifan



On Fri, Feb 12, 2016 at 6:15 AM, Liu, Ming (Ming) <[email protected]> wrote:

> Hi, all,
>
> I want to check the code that calculate the hash value for the _SALT_ 
> column in Trafodion. Could anyone point me to the exact source code, 
> which file and which function doing that?
> I tried for a while and cannot find it yet.
>
> So that I can write a function F, that F(all cluster key) => rowkey of 
> the Trafodion table row.
>
> Thanks,
> Ming
>
>


--
Regards, --Qifan

Reply via email to