public static void setSampleOverwrite(VectorizedRowBatch batch) {

    // Put sample data in the columns.
    for (int i = 0; i != batch.numCols; i++) {
      setSampleLongCol((LongColumnVector) batch.cols[i]);
    }

    // Reset the selection vector.
    batch.selectedInUse = false;
    batch.size = VectorizedRowBatch.DEFAULT_SIZE;
  }
Set to sample data, re-using existing columns in batch.

@param batch
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorizedRowBatch.java