public static final class ProfilingAware.ProfiledBarrier extends Object implements Barrier
Barrier and it's related ProfileStep so that the latter can have
its timer started and stopped appropriately.| Constructor and Description |
|---|
ProfiledBarrier(Barrier barrier,
ProfileStep profileStep) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBarrier(Object barrier)
Add a barrier to the step.
|
void |
done()
A way to hard set that the barrier is complete.
|
MemoryComputeKey |
getMemoryComputeKey()
The
MemoryComputeKey that will be used by this step. |
boolean |
hasNextBarrier()
Whether or not the step has an accessible barrier.
|
Object |
nextBarrier()
Get the next barrier within this step.
|
void |
processAllStarts()
Process all left traversers by do not yield the resultant output.
|
public ProfiledBarrier(Barrier barrier, ProfileStep profileStep)
public void processAllStarts()
BarrierReducingBarrierStep, where traversers can be processed "on the fly" and thus, reduce memory consumption.processAllStarts in interface Barrierpublic boolean hasNextBarrier()
BarrierhasNextBarrier in interface Barrierpublic Object nextBarrier() throws NoSuchElementException
BarriernextBarrier in interface BarrierNoSuchElementExceptionpublic void addBarrier(Object barrier)
BarrieraddBarrier in interface Barrierbarrier - the barrier to merge inpublic MemoryComputeKey getMemoryComputeKey()
MemoryComputingMemoryComputeKey that will be used by this step.getMemoryComputeKey in interface MemoryComputingCopyright © 2013–2019 Apache Software Foundation. All rights reserved.