code: protected void clearPartitions() {
  		for (int i = this.partitionsBeingBuilt.size() - 1; i >= 0; --i) {
  			final HashPartition<BT, PT> p = this.partitionsBeingBuilt.get(i);
  			try {
  				p.clearAllMemory(this.availableMemory);
  			} catch (Exception e) {
  				LOG.error("Error during partition cleanup.", e);
  			}
  		}
  		this.partitionsBeingBuilt.clear();
  	}
docs: This method clears all partitions currently residing (partially) in memory. It releases all memory
  and deletes all spilled partitions.
  <p>
  This method is intended for a hard cleanup in the case that the join is aborted.