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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TunedQueryInfo(Origin origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrigingetOrigin()Return the origin entry (includes call stack and bean type).io.ebeaninternal.server.querydefn.OrmQueryDetailgetTunedDetail()Return the tuned detail (for comparison with profiling information).StringtoString()booleantuneQuery(io.ebeaninternal.api.SpiQuery<?> query)Tune the query by replacing its OrmQueryDetail with a tuned one.
-
-
-
Constructor Detail
-
TunedQueryInfo
public TunedQueryInfo(Origin origin)
-
-
Method Detail
-
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.
-
-