Class BucketAssignmentPolicy
- java.lang.Object
-
- com.marklogic.mapreduce.utilities.AssignmentPolicy
-
- com.marklogic.mapreduce.utilities.BucketAssignmentPolicy
-
public class BucketAssignmentPolicy extends AssignmentPolicy
Bucket Assignment Policy for fastload
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.marklogic.mapreduce.utilities.AssignmentPolicy
AssignmentPolicy.Kind
-
-
Field Summary
-
Fields inherited from class com.marklogic.mapreduce.utilities.AssignmentPolicy
LOG, policy, uForests
-
-
Constructor Summary
Constructors Constructor Description BucketAssignmentPolicy(String[] forests, LinkedHashSet<String> uForests)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[][]getBucketsTable()intgetPlacementForestIndex(DocumentURI uri)return the index to the list of updatable forests (all forest - retired - RO/DO)-
Methods inherited from class com.marklogic.mapreduce.utilities.AssignmentPolicy
getPolicyKind
-
-
-
-
Constructor Detail
-
BucketAssignmentPolicy
public BucketAssignmentPolicy(String[] forests, LinkedHashSet<String> uForests)
-
-
Method Detail
-
getBucketsTable
public int[][] getBucketsTable()
-
getPlacementForestIndex
public int getPlacementForestIndex(DocumentURI uri)
return the index to the list of updatable forests (all forest - retired - RO/DO)- Specified by:
getPlacementForestIndexin classAssignmentPolicy- Parameters:
uri-- Returns:
- index in the list of updatable forests
-
-