@Override
  public boolean validateSelected() {
    for (int i = 1; i < size; i++) {
      if (selected[i-1] >= selected[i]) {
        return false;
      }
    }
    return true;
  }
Set the maximum number of rows in the batch.
Data is not preserved.
storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedRowBatch.java