@Override public void workerIterationEnd(ScanMetrics metrics) { for (Map.Entry<MapReduce, FulgoraMapEmitter> mapJob : mapJobs.entrySet()) { mapJob.getKey().workerEnd(MapReduce.Stage.MAP); } }
@Override public void workerIterationEnd(ScanMetrics metrics) { for (Map.Entry<MapReduce, FulgoraMapEmitter> mapJob : mapJobs.entrySet()) { mapJob.getKey().workerEnd(MapReduce.Stage.MAP); } }
@Override public void cleanup(final Reducer<ObjectWritable, ObjectWritable, ObjectWritable, ObjectWritable>.Context context) { this.mapReduce.workerEnd(MapReduce.Stage.REDUCE); }
@Override public void cleanup(final Reducer<ObjectWritable, ObjectWritable, ObjectWritable, ObjectWritable>.Context context) { this.mapReduce.workerEnd(MapReduce.Stage.COMBINE); }
workers.submit(() -> mapReduce.reduce(queueEntry.getKey(), ((Iterable) queueEntry.getValue()).iterator(), reduceEmitter)); workers.submit(() -> mapReduce.workerEnd(MapReduce.Stage.REDUCE)); } catch (Exception e) { throw new TitanException("Exception while executing reduce phase", e);
@Override public void cleanup(final Mapper<NullWritable, VertexWritable, ObjectWritable, ObjectWritable>.Context context) { this.mapReduce.workerEnd(MapReduce.Stage.MAP); }
workers.submit(() -> mapReduce.reduce(queueEntry.getKey(), ((Iterable) queueEntry.getValue()).iterator(), reduceEmitter)); workers.submit(() -> mapReduce.workerEnd(MapReduce.Stage.REDUCE)); } catch (Exception e) { throw new JanusGraphException("Exception while executing reduce phase", e);
@Override public boolean hasNext() { if (!this.queue.isEmpty()) return true; else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.REDUCE); return false; } else { this.processNext(); return this.hasNext(); } }
@Override public boolean hasNext() { if (!this.combineMap.isEmpty()) return true; else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.COMBINE); return false; } else { this.processNext(); return this.hasNext(); } }
@Override public boolean hasNext() { if (!this.queue.isEmpty()) return true; else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.MAP); return false; } else { this.processNext(); return this.hasNext(); } }
@Override public Tuple2<OK, OV> next() { if (!this.queue.isEmpty()) return this.queue.remove(); else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.REDUCE); throw FastNoSuchElementException.instance(); } else { this.processNext(); return this.next(); } }
@Override public Tuple2<K, V> next() { if (!this.queue.isEmpty()) return this.queue.remove(); else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.MAP); throw FastNoSuchElementException.instance(); } else { this.processNext(); return this.next(); } }
@Override public Tuple2<OK, OV> next() { if (!this.combineMap.isEmpty()) return this.nextFromCombineMap(); else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.COMBINE); throw FastNoSuchElementException.instance(); } else { this.processNext(); return this.next(); } }
@Override public void workerIterationEnd(ScanMetrics metrics) { for (Map.Entry<MapReduce, FulgoraMapEmitter> mapJob : mapJobs.entrySet()) { mapJob.getKey().workerEnd(MapReduce.Stage.MAP); } }
@Override public boolean hasNext() { if (!this.queue.isEmpty()) return true; else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.MAP); return false; } else { this.processNext(); return this.hasNext(); } }
@Override public boolean hasNext() { if (!this.combineMap.isEmpty()) return true; else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.COMBINE); return false; } else { this.processNext(); return this.hasNext(); } }
@Override public Tuple2<K, V> next() { if (!this.queue.isEmpty()) return this.queue.remove(); else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.MAP); throw FastNoSuchElementException.instance(); } else { this.processNext(); return this.next(); } }
@Override public Tuple2<OK, OV> next() { if (!this.queue.isEmpty()) return this.queue.remove(); else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.REDUCE); throw FastNoSuchElementException.instance(); } else { this.processNext(); return this.next(); } }
@Override public Tuple2<OK, OV> next() { if (!this.combineMap.isEmpty()) return this.nextFromCombineMap(); else if (!this.inputIterator.hasNext()) { this.mapReduce.workerEnd(MapReduce.Stage.COMBINE); throw FastNoSuchElementException.instance(); } else { this.processNext(); return this.next(); } }