Yes, it's being used in PRowImpl to calculate the salted key.

On 04/16/2013 04:34 PM, James Taylor wrote:
>
> In src/main/java/com/salesforce/phoenix/schema/SaltingUtil.java:
>
> > +
> > +    public static List<KeyRange> generateAllSaltingRanges(int bucketNum) {
> > +        List<KeyRange> allRanges = Lists.<KeyRange>newArrayListWithExpectedSize(bucketNum);
> > +        byte[] lowerBound = new byte[] {0};
> > +        byte[] upperBound = new byte[] {1};
> > +        for (int i=0; i<bucketNum; i++) {
> > +            allRanges.add(SALTING_COLUMN.getDataType().getKeyRange(
> > +                    Arrays.copyOf(lowerBound, lowerBound.length), true,
> > +                    Arrays.copyOf(upperBound, upperBound.length), false));
> > +            ByteUtil.nextKey(lowerBound, 1);
> > +            ByteUtil.nextKey(upperBound, 1);
> > +        }
> > +        return allRanges;
> > +    }
> > +
> > +    // Compute the hash of the key value stored in key and set its first byte as the value. The
>
> Do we need this?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/forcedotcom/phoenix/pull/139/files#r3823642>.
>