public static void setSampleStringCol(BytesColumnVector col) {
    initColors();
    int size = col.vector.length;
    for(int i = 0; i != size; i++) {
      int pos = i % colorsBytes.length;
      col.setRef(i, colorsBytes[pos], 0, colorsBytes[pos].length);
    }
  }
Set vector elements to sample string data from colorsBytes string table.
@param col
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorizedRowBatch.java