T - type of query processing algorithmpublic abstract class SpecializationState<T> extends Object
SpecializationService| Constructor and Description |
|---|
SpecializationState() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accountLoopIterations(long loopIterations)
Accounts the number of loop iterations, made when processing queries without specialized algorithm, i.
|
abstract T |
getSpecialized()
Returns an instance of specialized version of query processing algorithm, if available, null otherwise.
|
T |
getSpecializedOrDefault(T defaultInstance)
Returns an instance of specialized version of query processing algorithm, if available, defaultInstance otherwise.
|
@Nullable public abstract T getSpecialized()
public final T getSpecializedOrDefault(T defaultInstance)
public abstract void accountLoopIterations(long loopIterations)
getSpecialized() returned null. If sufficiently many loop iterations were made, SpecializationService decides that the algorithm is worth to be specialized, and getSpecialized() will
return non-null during later queries.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.