This project has retired. For details please refer to its
Attic page.
DurationBasedQueryPriorityDecider (Lens 2.1.0-beta-incubating API)
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(LensDriver driver,
String ranges,
float monthlyPartitoinWeight,
float dailyPartitionWeight,
float hourlyPartitionWeight)
- Constructor. Takes three weights for partitions.
- Parameters:
driver
- 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.