@Override
  public VectorizedRowBatch produceNextBatch() {
    vrg.size = 0;
    vrg.selectedInUse = false;
    if (count > 0) {
      vrg.size = batchSize < count ? batchSize : count;
      count -= vrg.size;
      for (int i=0; i<numCols; ++i) {
        LongColumnVector col = (LongColumnVector)vrg.cols[i];
        col.isRepeating = true;
        Long value = values[i];
        if (value == null) {
          col.isNull[0] = true;
          col.noNulls = false;
        } else {
          col.noNulls = true;
          col.vector[0] = value;
        }
      }
    }
    return vrg;
  }
VectorizedRowBatch test source from individual column values (as RLE)
Used in unit test only.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/util/FakeVectorRowBatchFromRepeats.java