private void checkSize(int index) throws DeleteEventsOverflowMemoryException {
      if(index > maxEventsInMemory) {
        //check to prevent OOM errors
        LOG.info("Total number of delete events exceeds the maximum number of "
            + "delete events that can be loaded into memory for " + orcSplit
            + ". The max limit is currently set at " + maxEventsInMemory
            + " and can be changed by setting the Hive config variable "
            + ConfVars.HIVE_TRANSACTIONAL_NUM_EVENTS_IN_MEMORY.varname);
        throw new DeleteEventsOverflowMemoryException();
      }
      if(index < rowIds.length) {
        return;
      }
      int newLength = rowIds.length + 1000000;
      if(rowIds.length <= 1000000) {
        //double small arrays; increase by 1M large arrays
        newLength = rowIds.length * 2;
      }
      rowIds = Arrays.copyOf(rowIds, newLength);
    }
Check if the delete delta folder needs to be scanned for a given split's min/max write ids.

@param orcSplitMinMaxWriteIds
@param deleteDelta
@param stmtId statementId of the deleteDelta if present
@return true when  delete delta dir has to be scanned.
ql/src/java/org/apache/hadoop/hive/ql/io/orc/VectorizedOrcAcidRowBatchReader.java