- All Implemented Interfaces:
public class LabelledChunkFinder extends Object implements ChunkFinderSplits a flow execution into
FlowChunks whenever you have a label. This works for labelled blocks or single-step labels. Useful for collecting stages and parallel branches.
- Sam Van Oort
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
isChunkEnd(FlowNode current, FlowNode previous)
isChunkStart(FlowNode current, FlowNode previous)Start is anywhere with a
isStartInsideChunk()If true, a chunk is implicitly created whenever we begin.
public boolean isStartInsideChunk()Description copied from interface:
ChunkFinderIf true, a chunk is implicitly created whenever we begin.
If you are matching the start/end of a block, should always return false.
If you are trying to match markers (such as single-node labels or milestones), should always be true.
isChunkStartStart is anywhere with a
isChunkEndEnd is where the previous node is a chunk start or this is a
BlockStartNodehas a label action
- Specified by:
current- Node to test for being end
For a block, the
For a legacy stage or marker, this will be first node of new stage (previous is the marker)
previous- Previous node, to use in testing chunk
- True if current is the end of a chunk (inclusive)