Class TunedQueryInfo

java.lang.Object
io.ebeaninternal.server.autotune.service.TunedQueryInfo
All Implemented Interfaces:
Serializable

public class TunedQueryInfo extends Object implements Serializable
Holds tuned query information. Is immutable so this represents the tuning at a given point in time.
See Also:
  • Constructor Details

    • TunedQueryInfo

      public TunedQueryInfo(Origin origin)
  • Method Details

    • getOrigin

      public Origin getOrigin()
      Return the origin entry (includes call stack and bean type).
    • getTunedDetail

      public io.ebeaninternal.server.querydefn.OrmQueryDetail getTunedDetail()
      Return the tuned detail (for comparison with profiling information).
    • tuneQuery

      public boolean tuneQuery(io.ebeaninternal.api.SpiQuery<?> query)
      Tune the query by replacing its OrmQueryDetail with a tuned one.
      Returns:
      true if the query was tuned, otherwise false.
    • toString

      public String toString()
      Overrides:
      toString in class Object