public static class MatchStep.CountMatchAlgorithm extends Object implements MatchStep.MatchAlgorithm
Modifier and Type | Class and Description |
---|---|
class |
MatchStep.CountMatchAlgorithm.Bundle |
Modifier and Type | Field and Description |
---|---|
protected List<MatchStep.CountMatchAlgorithm.Bundle> |
bundles |
protected int |
counter |
protected boolean |
onComputer |
UNMATCHABLE_PATTERN
Constructor and Description |
---|
CountMatchAlgorithm() |
Modifier and Type | Method and 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) |
protected List<MatchStep.CountMatchAlgorithm.Bundle> bundles
protected int counter
protected boolean onComputer
public void initialize(boolean onComputer, List<Traversal.Admin<Object,Object>> traversals)
initialize
in interface MatchStep.MatchAlgorithm
public Traversal.Admin<Object,Object> apply(Traverser.Admin<Object> traverser)
apply
in interface Function<Traverser.Admin<Object>,Traversal.Admin<Object,Object>>
public void recordStart(Traverser.Admin<Object> traverser, Traversal.Admin<Object,Object> traversal)
recordStart
in interface MatchStep.MatchAlgorithm
public void recordEnd(Traverser.Admin<Object> traverser, Traversal.Admin<Object,Object> traversal)
recordEnd
in interface MatchStep.MatchAlgorithm
protected MatchStep.CountMatchAlgorithm.Bundle getBundle(Traversal.Admin<Object,Object> traversal)
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.