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 Origin
getOrigin()
Return the origin entry (includes call stack and bean type).OrmQueryDetail
getTunedDetail()
Return the tuned detail (for comparison with profiling information).String
toString()
boolean
tuneQuery(SpiQuery<?> query)
Tune the query by replacing its OrmQueryDetail with a tuned one.
-
-
-
Constructor Detail
-
TunedQueryInfo
public TunedQueryInfo(Origin origin)
-
-
Method Detail
-
getTunedDetail
public OrmQueryDetail getTunedDetail()
Return the tuned detail (for comparison with profiling information).
-
tuneQuery
public boolean tuneQuery(SpiQuery<?> query)
Tune the query by replacing its OrmQueryDetail with a tuned one.- Returns:
- true if the query was tuned, otherwise false.
-
-