org.apache.lens.driver.hive.priority
Class DurationBasedQueryPriorityDecider
java.lang.Object
org.apache.lens.driver.hive.priority.DurationBasedQueryPriorityDecider
- All Implemented Interfaces:
- QueryPriorityDecider
public class DurationBasedQueryPriorityDecider
- extends Object
- implements QueryPriorityDecider
DurationBasedQueryPriorityDecider
public DurationBasedQueryPriorityDecider(String ranges,
float monthlyPartitoinWeight,
float dailyPartitionWeight,
float hourlyPartitionWeight)
- Constructor. Takes three weights for partitions.
- Parameters:
ranges
- monthlyPartitoinWeight
- dailyPartitionWeight
- hourlyPartitionWeight
-
decidePriority
public Priority decidePriority(AbstractQueryContext abstractQueryContext)
throws LensException
- The Implementation
- Specified by:
decidePriority
in interface QueryPriorityDecider
- Parameters:
abstractQueryContext
-
- Returns:
- decided Priority
- Throws:
LensException
- Exception occurs mostly when one of drivers/explained queries/plans is null
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.