public void reset(Collection<Integer> columnIndices) {
    ColumnVector[] columnsToReset = columnIndices.stream()
            .filter(index -> index < cols.length)
            .map(x -> cols[x])
            .toArray(ColumnVector[]::new);
    reset(columnsToReset);
  }
Resets the row batch to default state
 - sets selectedInUse to false
 - sets size to 0
 - sets endOfFile to false
 - resets each column
 - inits each column
storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedRowBatch.java