public class StatisticalAssignmentPolicy extends AssignmentPolicy
AssignmentPolicy.Kind
LOG, policy, uForests
Constructor and Description |
---|
StatisticalAssignmentPolicy(long[] stats,
int batch) |
Modifier and Type | Method and Description |
---|---|
int |
getPlacementForestIndex(DocumentURI uri)
get the index of the forest with smallest number of docs
|
void |
updateStats(int fIdx,
long count)
add count to forest with index fIdx, which may not be the forest with
minimum frmtCount.
|
getPolicyKind
public StatisticalAssignmentPolicy(long[] stats, int batch)
public void updateStats(int fIdx, long count)
fIdx
- count
- public int getPlacementForestIndex(DocumentURI uri)
getPlacementForestIndex
in class AssignmentPolicy
Copyright © 2022 MarkLogic Corporation
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com