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