Class MatchStep.CountMatchAlgorithm
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.MatchStep.CountMatchAlgorithm
-
- All Implemented Interfaces:
Serializable
,Function<Traverser.Admin<Object>,Traversal.Admin<Object,Object>>
,MatchStep.MatchAlgorithm
public static class MatchStep.CountMatchAlgorithm extends Object implements MatchStep.MatchAlgorithm
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MatchStep.CountMatchAlgorithm.Bundle
-
Field Summary
Fields Modifier and Type Field Description protected List<MatchStep.CountMatchAlgorithm.Bundle>
bundles
protected int
counter
protected boolean
onComputer
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MatchStep.MatchAlgorithm
UNMATCHABLE_PATTERN
-
-
Constructor Summary
Constructors Constructor Description CountMatchAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Traversal.Admin<Object,Object>
apply(Traverser.Admin<Object> traverser)
protected MatchStep.CountMatchAlgorithm.Bundle
getBundle(Traversal.Admin<Object,Object> traversal)
void
initialize(boolean onComputer, List<Traversal.Admin<Object,Object>> traversals)
void
recordEnd(Traverser.Admin<Object> traverser, Traversal.Admin<Object,Object> traversal)
void
recordStart(Traverser.Admin<Object> traverser, Traversal.Admin<Object,Object> traversal)
-
-
-
Field Detail
-
bundles
protected List<MatchStep.CountMatchAlgorithm.Bundle> bundles
-
counter
protected int counter
-
onComputer
protected boolean onComputer
-
-
Method Detail
-
initialize
public void initialize(boolean onComputer, List<Traversal.Admin<Object,Object>> traversals)
- Specified by:
initialize
in interfaceMatchStep.MatchAlgorithm
-
apply
public Traversal.Admin<Object,Object> apply(Traverser.Admin<Object> traverser)
- Specified by:
apply
in interfaceFunction<Traverser.Admin<Object>,Traversal.Admin<Object,Object>>
-
recordStart
public void recordStart(Traverser.Admin<Object> traverser, Traversal.Admin<Object,Object> traversal)
- Specified by:
recordStart
in interfaceMatchStep.MatchAlgorithm
-
recordEnd
public void recordEnd(Traverser.Admin<Object> traverser, Traversal.Admin<Object,Object> traversal)
- Specified by:
recordEnd
in interfaceMatchStep.MatchAlgorithm
-
getBundle
protected MatchStep.CountMatchAlgorithm.Bundle getBundle(Traversal.Admin<Object,Object> traversal)
-
-