private VectorizedRowBatch makeBatch() {
    VectorizedRowBatch batch = new VectorizedRowBatch(3);
    LongColumnVector lv = new LongColumnVector();
    DoubleColumnVector dv = new DoubleColumnVector();
    BytesColumnVector bv = new BytesColumnVector();
    setSampleStringCol(bv);
    batch.cols[0] = lv;
    batch.cols[1] = dv;
    batch.cols[2] = bv;
    addRandomNulls(batch);
    return batch;
  }
Test creation and basic manipulation of VectorizedRowBatch.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorizedRowBatch.java