public static VectorBatchPattern createRegularBatch(int batchSize) {
      return new VectorBatchPattern(null, batchSize, null, false);
    }
Generate random batch source from a random Object[] row source (VectorRandomRowSource).
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/VectorRandomBatchSource.java