presto-array/src/main/java/io/prestosql/array/BigArrays.java/BigArrays/segment
class BigArrays:    @SuppressWarnings("NumericCastThatLosesPrecision")
    public static int segment(long index)
    {
        return (int) (index >>> SEGMENT_SHIFT);
    }