Class SpecializationState<T>
java.lang.Object
org.apache.druid.query.monomorphicprocessing.SpecializationState<T>
- Type Parameters:
T- type of query processing algorithm
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaccountLoopIterations(long loopIterations) Accounts the number of loop iterations, made when processing queries without specialized algorithm, i.abstract TReturns an instance of specialized version of query processing algorithm, if available, null otherwise.final TgetSpecializedOrDefault(T defaultInstance) Returns an instance of specialized version of query processing algorithm, if available, defaultInstance otherwise.
-
Constructor Details
-
SpecializationState
public SpecializationState()
-
-
Method Details
-
getSpecialized
Returns an instance of specialized version of query processing algorithm, if available, null otherwise. -
getSpecializedOrDefault
Returns an instance of specialized version of query processing algorithm, if available, defaultInstance otherwise. -
accountLoopIterations
public abstract void accountLoopIterations(long loopIterations) Accounts the number of loop iterations, made when processing queries without specialized algorithm, i. e. aftergetSpecialized()returned null. If sufficiently many loop iterations were made,SpecializationServicedecides that the algorithm is worth to be specialized, andgetSpecialized()will return non-null during later queries.
-