Class NoQueryLaningStrategy
- java.lang.Object
-
- org.apache.druid.server.scheduling.NoQueryLaningStrategy
-
- All Implemented Interfaces:
QueryLaningStrategy
public class NoQueryLaningStrategy extends Object implements QueryLaningStrategy
Query laning strategy that does nothing and provides the default, unlimited behavior
-
-
Field Summary
Fields Modifier and Type Field Description static NoQueryLaningStrategyINSTANCE
-
Constructor Summary
Constructors Constructor Description NoQueryLaningStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Optional<String>computeLane(org.apache.druid.query.QueryPlus<T> query, Set<SegmentServerSelector> segments)For a givenQueryPlusand set ofSegmentServerSelector, compute if a query belongs to a lane This method must be thread safeit.unimi.dsi.fastutil.objects.Object2IntMap<String>getLaneLimits(int totalLimit)Provide a map of lane names to the limit on the number of concurrent queries for that lane-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.server.QueryLaningStrategy
computeLimitFromPercent
-
-
-
-
Field Detail
-
INSTANCE
public static final NoQueryLaningStrategy INSTANCE
-
-
Method Detail
-
getLaneLimits
public it.unimi.dsi.fastutil.objects.Object2IntMap<String> getLaneLimits(int totalLimit)
Description copied from interface:QueryLaningStrategyProvide a map of lane names to the limit on the number of concurrent queries for that lane- Specified by:
getLaneLimitsin interfaceQueryLaningStrategy
-
computeLane
public <T> Optional<String> computeLane(org.apache.druid.query.QueryPlus<T> query, Set<SegmentServerSelector> segments)
Description copied from interface:QueryLaningStrategyFor a givenQueryPlusand set ofSegmentServerSelector, compute if a query belongs to a lane This method must be thread safe- Specified by:
computeLanein interfaceQueryLaningStrategy
-
-