int getRowSize(int countBufferedRows) {
    int count = 0;
    boolean countedInMemoryBlock = false;

    for (VectorSpillBlock block : blocks) {
      if (block.startBatchIndex == startBatchIndexInMemory) {
        count += countBufferedRows;
        countedInMemoryBlock = true;
      } else {
        count += block.spillRowCount;
      }
    }
    if (!countedInMemoryBlock) {
      count += countBufferedRows;
    }
    return count;
  }
Reads a single row from a VectorRowBytesContainer. Caller is responsible for calling and
checking readNext in advance.

@param batch
@param vectorDeserializeRow
@param rowBytesContainer
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/ptf/VectorSpillBlockContainer.java