Class ProfilingAware.ProfiledBarrier
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.ProfilingAware.ProfiledBarrier
 
- 
- All Implemented Interfaces:
- Barrier,- MemoryComputing
 - Enclosing interface:
- ProfilingAware
 
 public static final class ProfilingAware.ProfiledBarrier extends Object implements Barrier A helper class which holds aBarrierand it's relatedProfileStepso that the latter can have its timer started and stopped appropriately.
- 
- 
Constructor SummaryConstructors Constructor Description ProfiledBarrier(Barrier barrier, ProfileStep profileStep)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBarrier(Object barrier)Add a barrier to the step.voiddone()A way to hard set that the barrier is complete.MemoryComputeKeygetMemoryComputeKey()TheMemoryComputeKeythat will be used by this step.booleanhasNextBarrier()Whether or not the step has an accessible barrier.ObjectnextBarrier()Get the next barrier within this step.voidprocessAllStarts()Process all left traversers by do not yield the resultant output.
 
- 
- 
- 
Constructor Detail- 
ProfiledBarrierpublic ProfiledBarrier(Barrier barrier, ProfileStep profileStep) 
 
- 
 - 
Method Detail- 
processAllStartspublic void processAllStarts() Description copied from interface:BarrierProcess all left traversers by do not yield the resultant output. This method is useful for steps likeReducingBarrierStep, where traversers can be processed "on the fly" and thus, reduce memory consumption.- Specified by:
- processAllStartsin interface- Barrier
 
 - 
hasNextBarrierpublic boolean hasNextBarrier() Description copied from interface:BarrierWhether or not the step has an accessible barrier.- Specified by:
- hasNextBarrierin interface- Barrier
- Returns:
- whether a barrier exists or not
 
 - 
nextBarrierpublic Object nextBarrier() throws NoSuchElementException Description copied from interface:BarrierGet the next barrier within this step. Barriers from parallel steps can be the be merged to create a single step with merge barriers.- Specified by:
- nextBarrierin interface- Barrier
- Returns:
- the next barrier of the step
- Throws:
- NoSuchElementException
 
 - 
addBarrierpublic void addBarrier(Object barrier) Description copied from interface:BarrierAdd a barrier to the step. This typically happens when multiple parallel barriers need to become one barrier at a single step.- Specified by:
- addBarrierin interface- Barrier
- Parameters:
- barrier- the barrier to merge in
 
 - 
getMemoryComputeKeypublic MemoryComputeKey getMemoryComputeKey() Description copied from interface:MemoryComputingTheMemoryComputeKeythat will be used by this step.- Specified by:
- getMemoryComputeKeyin interface- MemoryComputing
- Returns:
- the MemoryComputeKey to use
 
 
- 
 
-