private VectorizedRowBatch getVectorizedRowBatch(Long[] inputs, int size) {
    VectorizedRowBatch batch = new VectorizedRowBatch(2, size);
    LongColumnVector inputCol = new LongColumnVector(size);
    for (int i = 0; i < size; i++) {
      inputCol.vector[i] = inputs[i % inputs.length];
    }
    batch.cols[0] = inputCol;
    batch.cols[1] = new LongColumnVector(size);
    batch.size = size;
    return batch;
  }
Input array is used to fill the entire specified size of the vector row batch.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorUDFDatetimeLegacyHybridCalendar.java