@Override
  public void seal() {
    for (HashPartition hp : hashPartitions) {
      // Only seal those partitions that haven't been spilled and cleared,
      // because once a hashMap is cleared, it will become unusable
      if (hp.hashMap != null && hp.hashMap.size() != 0) {
        hp.hashMap.seal();
      }
    }
  }
Gets the partition Id into which to spill the big table row
@return partition Id
ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java