@Override public void cleanup() throws Exception { if (this.spillIter != null) { this.spillIter.close(); this.spillIter = null; } if (this.blockIter != null) { this.blockIter.close(); this.blockIter = null; } }
return getNextRecord(); } else { if (writeNextRecord(result)) { return result; } else {
new BlockResettableMutableObjectIterator<T2>(this.memManager, in2, serializer2, this.memPagesForBlockSide, this.taskContext.getContainingTask()); this.blockIter = blockVals; while (this.running && ((val2 = blockVals.next(val2Reuse)) != null)) { collector.collect(crosser.cross(val1, val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock()); } else { T1 val1; while (this.running && ((val2 = blockVals.next()) != null)) { collector.collect(crosser.cross(serializer1.copy(val1), val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock());
if (!writeNextRecord(this.leftOverRecord)) { throw new IOException("BlockResettableIterator could not serialize record into fresh memory block: " + "Record is too large.");
new BlockResettableMutableObjectIterator<T1>(this.memManager, in1, serializer1, this.memPagesForBlockSide, this.taskContext.getContainingTask()); this.blockIter = blockVals; while ((val1 = blockVals.next(val1Reuse)) != null) { collector.collect(crosser.cross(val1, val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock()); } else { T1 val1; while ((val1 = blockVals.next()) != null) { collector.collect(crosser.cross(val1, serializer2.copy(val2))); blockVals.reset(); } while (this.running && blockVals.nextBlock());
if (!writeNextRecord(this.leftOverRecord)) { throw new IOException("BlockResettableIterator could not serialize record into fresh memory block: " + "Record is too large.");
new BlockResettableMutableObjectIterator<T1>(this.memManager, in1, serializer1, this.memPagesForBlockSide, this.taskContext.getContainingTask()); this.blockIter = blockVals; while ((val1 = blockVals.next(val1Reuse)) != null) { collector.collect(crosser.cross(val1, val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock()); } else { T1 val1; while ((val1 = blockVals.next()) != null) { collector.collect(crosser.cross(val1, serializer2.copy(val2))); blockVals.reset(); } while (this.running && blockVals.nextBlock());
return getNextRecord(); } else { if (writeNextRecord(result)) { return result; } else {
@Override public void cleanup() throws Exception { if (this.spillIter != null) { this.spillIter.close(); this.spillIter = null; } if (this.blockIter != null) { this.blockIter.close(); this.blockIter = null; } }
if (!writeNextRecord(this.leftOverRecord)) { throw new IOException("BlockResettableIterator could not serialize record into fresh memory block: " + "Record is too large.");
new BlockResettableMutableObjectIterator<T2>(this.memManager, in2, serializer2, this.memPagesForBlockSide, this.taskContext.getContainingTask()); this.blockIter = blockVals; while (this.running && ((val2 = blockVals.next(val2Reuse)) != null)) { collector.collect(crosser.cross(val1, val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock()); } else { T1 val1; while (this.running && ((val2 = blockVals.next()) != null)) { collector.collect(crosser.cross(serializer1.copy(val1), val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock());
return getNextRecord(); } else { if (writeNextRecord(result)) { return result; } else {
@Override public void cleanup() throws Exception { if (this.spillIter != null) { this.spillIter.close(); this.spillIter = null; } if (this.blockIter != null) { this.blockIter.close(); this.blockIter = null; } }
if (!writeNextRecord(this.leftOverRecord)) { throw new IOException("BlockResettableIterator could not serialize record into fresh memory block: " + "Record is too large.");
new BlockResettableMutableObjectIterator<T1>(this.memManager, in1, serializer1, this.memPagesForBlockSide, this.taskContext.getContainingTask()); this.blockIter = blockVals; while ((val1 = blockVals.next(val1Reuse)) != null) { collector.collect(crosser.cross(val1, val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock()); } else { T1 val1; while ((val1 = blockVals.next()) != null) { collector.collect(crosser.cross(val1, serializer2.copy(val2))); blockVals.reset(); } while (this.running && blockVals.nextBlock());
return getNextRecord(); } else { if (writeNextRecord(result)) { return result; } else {
@Override public void cleanup() throws Exception { if (this.spillIter != null) { this.spillIter.close(); this.spillIter = null; } if (this.blockIter != null) { this.blockIter.close(); this.blockIter = null; } }
new BlockResettableMutableObjectIterator<T2>(this.memManager, in2, serializer2, this.memPagesForBlockSide, this.taskContext.getContainingTask()); this.blockIter = blockVals; while (this.running && ((val2 = blockVals.next(val2Reuse)) != null)) { collector.collect(crosser.cross(val1, val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock()); } else { T1 val1; while (this.running && ((val2 = blockVals.next()) != null)) { collector.collect(crosser.cross(serializer1.copy(val1), val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock());
return getNextRecord(target); } else { if (writeNextRecord(target)) { return target; } else {
new BlockResettableMutableObjectIterator<T2>(this.memManager, in2, serializer2, this.memPagesForBlockSide, this.taskContext.getContainingTask()); this.blockIter = blockVals; while (this.running && ((val2 = blockVals.next(val2Reuse)) != null)) { collector.collect(crosser.cross(val1, val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock()); } else { T1 val1; while (this.running && ((val2 = blockVals.next()) != null)) { collector.collect(crosser.cross(serializer1.copy(val1), val2)); blockVals.reset(); } while (this.running && blockVals.nextBlock());