public interface Barrier<B> extends MemoryComputing<B>
TraversalVertexProgram is synchronized and made to behave a single step.
All Barrier steps implement MemoryComputing as that is how barriers communicate with one another in GraphComputer.| Modifier and Type | Method and Description |
|---|---|
void |
addBarrier(B barrier)
Add a barrier to the step.
|
default void |
done()
A way to hard set that the barrier is complete.
|
boolean |
hasNextBarrier()
Whether or not the step has an accessible barrier.
|
B |
nextBarrier()
Get the next barrier within this step.
|
void |
processAllStarts()
Process all left traversers by do not yield the resultant output.
|
getMemoryComputeKeyvoid processAllStarts()
ReducingBarrierStep, where traversers can be processed "on the fly" and thus, reduce memory consumption.boolean hasNextBarrier()
B nextBarrier() throws NoSuchElementException
NoSuchElementExceptionvoid addBarrier(B barrier)
barrier - the barrier to merge indefault void done()
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.