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, onBacktrackpublic CountOperation(PQuery calledQuery, java.util.Map<java.lang.Integer,java.lang.Integer> frameMapping, int position)
public LocalSearchMatcher getAndPrepareCalledMatcher(MatchingFrame frame, ISearchContext context)
IMatcherBasedOperationgetAndPrepareCalledMatcher in interface IMatcherBasedOperationframe - the current matching framecontext - the search contextpublic LocalSearchMatcher getCalledMatcher()
IMatcherBasedOperationgetCalledMatcher in interface IMatcherBasedOperationpublic void onInitialize(MatchingFrame frame, ISearchContext context) throws LocalSearchException
ISearchOperationonInitialize in interface ISearchOperationLocalSearchExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<java.lang.Integer> getVariablePositions()
getVariablePositions in interface ISearchOperation