hollow/src/main/java/com/netflix/hollow/core/memory/SegmentedLongArray.java
public void set(long index, long value) {
        int segmentIndex = (int)(index >> log2OfSegmentSize);
        int longInSegment = (int)(index & bitmask);
        unsafe.putOrderedLong(segments[segmentIndex], (long)Unsafe.ARRAY_LONG_BASE_OFFSET + (8 * longInSegment), value);

        /// duplicate the longs here so that we can read faster.
        if(longInSegment == 0 && segmentIndex != 0)
            unsafe.putOrderedLong(segments[segmentIndex - 1], (long)Unsafe.ARRAY_LONG_BASE_OFFSET + (8 * (1 << log2OfSegmentSize)), value);
    }
public void set(long index, long value) {
        int segmentIndex = (int)(index >> log2OfSegmentSize);
        int longInSegment = (int)(index & bitmask);
        unsafe.putOrderedLong(segments[segmentIndex], (long)Unsafe.ARRAY_LONG_BASE_OFFSET + (8 * longInSegment), value);

        /// duplicate the longs here so that we can read faster.
        if(longInSegment == 0 && segmentIndex != 0)
            unsafe.putOrderedLong(segments[segmentIndex - 1], (long)Unsafe.ARRAY_LONG_BASE_OFFSET + (8 * (1 << log2OfSegmentSize)), value);
    }
public void set ( long index , long value ) { int segmentIndex = ( int ) ( index >> log2OfSegmentSize ) ; int longInSegment = ( int ) ( index & bitmask ) ; unsafe . putOrderedLong ( segments [ segmentIndex ] , ( long ) Unsafe . ARRAY_LONG_BASE_OFFSET + ( 8 * longInSegment ) , value ) ; /// duplicate the longs here so that we can read faster. if ( longInSegment == 0 && segmentIndex != 0 ) unsafe . putOrderedLong ( segments [ segmentIndex - 1 ] , ( long ) Unsafe . ARRAY_LONG_BASE_OFFSET + ( 8 * ( 1 << log2OfSegmentSize ) ) , value ) ; }
Set the byte at the given index to the specified value

@param index the index
@param value the byte value
Set the byte at the given index to the specified value