Class LocalSearchProfilerAdapter

  • All Implemented Interfaces:
    ILocalSearchAdapter

    public class LocalSearchProfilerAdapter
    extends java.lang.Object
    implements ILocalSearchAdapter
    This is a simple ILocalSearchAdapter which capable of counting each search operation execution then printing it in human readably form (along with the executed plans) using toString()
    Since:
    1.5
    • Constructor Detail

      • LocalSearchProfilerAdapter

        public LocalSearchProfilerAdapter()
    • Method Detail

      • operationExecuted

        public void operationExecuted​(SearchPlan plan,
                                      ISearchOperation operation,
                                      MatchingFrame frame,
                                      boolean isSuccessful)
        Description copied from interface: ILocalSearchAdapter
        Callback method to indicate that an operation is executed
        Specified by:
        operationExecuted in interface ILocalSearchAdapter
        Parameters:
        plan - the current plan
        frame - the current matching frame
        isSuccessful - if true, the operation executed successfully, or false if the execution failed and backtracking will happen
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object