Class DQueryPlanOutput

java.lang.Object
io.ebeaninternal.server.query.DQueryPlanOutput
All Implemented Interfaces:
io.ebean.meta.MetaQueryPlan, SpiDbQueryPlan

public final class DQueryPlanOutput extends Object implements io.ebean.meta.MetaQueryPlan, SpiDbQueryPlan
Captured query plan details.
  • Constructor Details

    • DQueryPlanOutput

      public DQueryPlanOutput(Class<?> beanType, String label, String hash, String sql, io.ebean.ProfileLocation profileLocation, String bind, String plan)
  • Method Details

    • hash

      public String hash()
      Specified by:
      hash in interface io.ebean.meta.MetaQueryPlan
    • beanType

      public Class<?> beanType()
      Specified by:
      beanType in interface io.ebean.meta.MetaQueryPlan
    • label

      public String label()
      Specified by:
      label in interface io.ebean.meta.MetaQueryPlan
    • profileLocation

      public io.ebean.ProfileLocation profileLocation()
      Specified by:
      profileLocation in interface io.ebean.meta.MetaQueryPlan
    • sql

      public String sql()
      Specified by:
      sql in interface io.ebean.meta.MetaQueryPlan
    • bind

      public String bind()
      Specified by:
      bind in interface io.ebean.meta.MetaQueryPlan
    • plan

      public String plan()
      Specified by:
      plan in interface io.ebean.meta.MetaQueryPlan
    • tenantId

      public Object tenantId()
      Specified by:
      tenantId in interface io.ebean.meta.MetaQueryPlan
    • queryTimeMicros

      public long queryTimeMicros()
      Specified by:
      queryTimeMicros in interface io.ebean.meta.MetaQueryPlan
    • captureCount

      public long captureCount()
      Specified by:
      captureCount in interface io.ebean.meta.MetaQueryPlan
    • captureMicros

      public long captureMicros()
      Specified by:
      captureMicros in interface io.ebean.meta.MetaQueryPlan
    • whenCaptured

      public Instant whenCaptured()
      Specified by:
      whenCaptured in interface io.ebean.meta.MetaQueryPlan
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • with

      public DQueryPlanOutput with(long queryTimeMicros, long captureCount, long captureMicros, Instant whenCaptured, Object tenantId)
      Description copied from interface: SpiDbQueryPlan
      Extend with queryTimeMicros, captureCount, captureMicros and when the bind values were captured.
      Specified by:
      with in interface SpiDbQueryPlan