public void storeValue(int index, int hashCode, BytesWritable value, boolean vectorized) {
    values[index] = Arrays.copyOf(value.getBytes(), value.getLength());
    // Vectorized doesn't adjust usage for the keys while processing the batch
    usage += values[index].length + (vectorized ? keys[index].length : 0);
  }
Stores the value for the key in the heap.
@param index The index, either from tryStoreKey or from tryStoreVectorizedKey result.
@param hashCode hashCode of key, used by ptfTopNHash.
@param value The value to store.
@param vectorized Whether the result is coming from a vectorized batch.
ql/src/java/org/apache/hadoop/hive/ql/exec/TopNHash.java