Interface SpiQueryBindCapture


  • public interface SpiQueryBindCapture
    Capture query bind values and with those actual database query plans.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean collectFor​(long timeMicros)
      Return true if the query just executed should be bind captured to collect the query plan from (as the query time is large / interesting).
      void queryPlanInit​(long thresholdMicros)
      Update the threshold micros triggering the bind capture.
      void setBind​(BindCapture bindCapture, long queryTimeMicros, long startNanos)
      Set the captured bind values that we can use later to collect a query plan.
    • Method Detail

      • collectFor

        boolean collectFor​(long timeMicros)
        Return true if the query just executed should be bind captured to collect the query plan from (as the query time is large / interesting).
      • setBind

        void setBind​(BindCapture bindCapture,
                     long queryTimeMicros,
                     long startNanos)
        Set the captured bind values that we can use later to collect a query plan.
        Parameters:
        bindCapture - The bind values of the query
        queryTimeMicros - The query execution time
        startNanos - The nanos start of this bind capture
      • queryPlanInit

        void queryPlanInit​(long thresholdMicros)
        Update the threshold micros triggering the bind capture.