@Override
  @SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "Ref external obj for efficiency")
  public void setFilterContext(boolean isSelectedInUse, int[] selected, int selectedSize) {
    this.selectedInUse = isSelectedInUse;
    this.selected = selected;
    this.size = selectedSize;
    // Avoid selected.length < selectedSize since we can borrow a larger array for selected
    // Debug loop for selected array: use without assert when needed (asserts only fail in testing)
    assert validateSelected() : "Selected array may not contain duplicates or unordered values";
  }
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