public int getMaxSize() {
      return selected.length;
  }
Returns the maximum size of the batch (number of rows it can hold)
storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedRowBatch.java