public class CountOperation extends ExtendOperation<java.lang.Integer> implements IMatcherBasedOperation
Constructor and Description |
---|
CountOperation(PQuery calledQuery,
java.util.Map<java.lang.Integer,java.lang.Integer> frameMapping,
int position) |
Modifier and Type | Method and Description |
---|---|
LocalSearchMatcher |
getAndPrepareCalledMatcher(MatchingFrame frame,
ISearchContext context)
Gets the called matcher based on the context and the current adornment and stores it in the corresponding field of the operation
|
LocalSearchMatcher |
getCalledMatcher()
Gets the called matcher associated with the operation
|
java.util.List<java.lang.Integer> |
getVariablePositions() |
void |
onInitialize(MatchingFrame frame,
ISearchContext context)
During the execution of the corresponding plan, the onInitialize callback is evaluated before the execution of
the operation may begin.
|
java.lang.String |
toString() |
execute, onBacktrack
public CountOperation(PQuery calledQuery, java.util.Map<java.lang.Integer,java.lang.Integer> frameMapping, int position)
public LocalSearchMatcher getAndPrepareCalledMatcher(MatchingFrame frame, ISearchContext context)
IMatcherBasedOperation
getAndPrepareCalledMatcher
in interface IMatcherBasedOperation
frame
- the current matching framecontext
- the search contextpublic LocalSearchMatcher getCalledMatcher()
IMatcherBasedOperation
getCalledMatcher
in interface IMatcherBasedOperation
public void onInitialize(MatchingFrame frame, ISearchContext context) throws LocalSearchException
ISearchOperation
onInitialize
in interface ISearchOperation
LocalSearchException
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<java.lang.Integer> getVariablePositions()
getVariablePositions
in interface ISearchOperation