Ejemplo n.º 1
0
 /**
  * Iterate over the big table row container and feed process() with leftover rows
  *
  * @param partitionId the partition from which to take out spilled big table rows
  * @throws HiveException
  */
 protected void reProcessBigTable(int partitionId) throws HiveException {
   // For binary join, firstSmallTable is the only small table; it has reference to spilled big
   // table rows;
   // For n-way join, since we only spill once, when processing the first small table, so only the
   // firstSmallTable has reference to the spilled big table rows.
   HashPartition partition = firstSmallTable.getHashPartitions()[partitionId];
   ObjectContainer bigTable = partition.getMatchfileObjContainer();
   while (bigTable.hasNext()) {
     Object row = bigTable.next();
     process(row, conf.getPosBigTable());
   }
   bigTable.clear();
 }