public void add(Row r){
  list.add(r);
  memory+=r.getMemory() + Constants.MEMORY_POINTER;
  if (maxMemory > 0 && memory > maxMemory) {
    writeAllRows();
  }
  size++;
}

public void add ( Row r ) { list . add ( r ) ; memory += r . getMemory ( ) + Constants . MEMORY_POINTER ; if ( maxMemory > 0 && memory > maxMemory ) { writeAllRows ( ) ; } size ++ ; }
add a row to the list .
