Class IdleRatioScanPrioritizer
- java.lang.Object
-
- org.apache.accumulo.core.spi.scan.IdleRatioScanPrioritizer
-
- All Implemented Interfaces:
ScanPrioritizer
public class IdleRatioScanPrioritizer extends Object implements ScanPrioritizer
Prioritize scans based on the ratio of runTime/idleTime. Scans with a lower ratio have a higher priority. When the ratio is equal, the scan with the oldest last run time has the highest priority. If neither have run, then the oldest gets priority.- Since:
- 2.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.scan.ScanPrioritizer
ScanPrioritizer.CreateParameters
-
-
Constructor Summary
Constructors Constructor Description IdleRatioScanPrioritizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<ScanInfo>
createComparator(ScanPrioritizer.CreateParameters params)
-
-
-
Method Detail
-
createComparator
public Comparator<ScanInfo> createComparator(ScanPrioritizer.CreateParameters params)
- Specified by:
createComparator
in interfaceScanPrioritizer
-
-