| Constructor and Description |
|---|
FirstNSelector() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Long> |
selectHighEnd(java.util.Map<java.lang.Long,java.lang.Double> scores,
int nSelect)
Select n elements from given Map (WorkerId, Scores), from the low end, (score value natural order)
|
java.util.List<java.lang.Long> |
selectLowEnd(java.util.Map<java.lang.Long,java.lang.Double> scores,
int nSelect)
Select n elements from given Map (WorkerId, Scores), from the low end, (score value natural order)
|
public java.util.List<java.lang.Long> selectHighEnd(java.util.Map<java.lang.Long,java.lang.Double> scores,
int nSelect)
SelectorselectHighEnd in interface Selectorscores - worker scores. workerId -> score mapnSelect - number of selectionspublic java.util.List<java.lang.Long> selectLowEnd(java.util.Map<java.lang.Long,java.lang.Double> scores,
int nSelect)
SelectorselectLowEnd in interface Selectorscores - worker scores. workerId -> score mapnSelect - number of selectionsCopyright © 2024. All rights reserved.