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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<MatchStep.CountMatchAlgorithm.Bundle>protected intprotected booleanFields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MatchStep.MatchAlgorithm
UNMATCHABLE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Traverser.Admin<Object> traverser) protected MatchStep.CountMatchAlgorithm.BundlegetBundle(Traversal.Admin<Object, Object> traversal) voidinitialize(boolean onComputer, List<Traversal.Admin<Object, Object>> traversals) voidrecordEnd(Traverser.Admin<Object> traverser, Traversal.Admin<Object, Object> traversal) voidrecordStart(Traverser.Admin<Object> traverser, Traversal.Admin<Object, Object> traversal)
-
Field Details
-
bundles
-
counter
protected int counter -
onComputer
protected boolean onComputer
-
-
Constructor Details
-
CountMatchAlgorithm
public CountMatchAlgorithm()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceMatchStep.MatchAlgorithm
-
apply
- Specified by:
applyin interfaceFunction<Traverser.Admin<Object>,Traversal.Admin<Object, Object>>
-
recordStart
public void recordStart(Traverser.Admin<Object> traverser, Traversal.Admin<Object, Object> traversal) - Specified by:
recordStartin interfaceMatchStep.MatchAlgorithm
-
recordEnd
- Specified by:
recordEndin interfaceMatchStep.MatchAlgorithm
-
getBundle
-