Interface QueryEventListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface QueryEventListener
Receives QueryEvents as the optimizer and planner make decisions.

This is a pure observer: an implementation must not alter the pipeline's behaviour, only react to it (collect for a report, print a trace, push a UI update). The default NONE ignores everything, so emitting events is free until a consumer opts in.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final QueryEventListener
    A listener that ignores every event.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called once per observed decision.
  • Field Details

  • Method Details

    • onEvent

      void onEvent(QueryEvent event)
      Called once per observed decision. Implementations should be fast and must not throw — an emitter is not expected to guard against listener failures.
      Parameters:
      event - the event; never null