public void addTemporaryResult(LocalResult result){
  if (!result.needToClose()) {
    return;
  }
  if (temporaryResults == null) {
    temporaryResults=New.hashSet();
  }
  if (temporaryResults.size() < 100) {
    temporaryResults.add(result);
  }
}

public void addTemporaryResult ( LocalResult result ) { if ( ! result . needToClose ( ) ) { return ; } if ( temporaryResults == null ) { temporaryResults = New . hashSet ( ) ; } if ( temporaryResults . size ( ) < 100 ) { temporaryResults . add ( result ) ; } }
remember the result set and close it as soon as the transaction is committed ( if it needs to be closed ) . this is done to delete temporary files as soon as possible , and free object ids of temporary tables .
