public class ParentsFirstShardPrioritization extends Object implements ShardPrioritization
Constructor and Description |
---|
ParentsFirstShardPrioritization(int maxDepth)
Creates ParentFirst prioritization with filtering based on depth of the shard.
|
Modifier and Type | Method and Description |
---|---|
List<ShardInfo> |
prioritize(List<ShardInfo> original)
Returns new list of shards ordered based on their priority.
|
public ParentsFirstShardPrioritization(int maxDepth)
maxDepth
- any shard that is deeper than max depth, will be excluded from processingpublic List<ShardInfo> prioritize(List<ShardInfo> original)
ShardPrioritization
prioritize
in interface ShardPrioritization
original
- list of shards needed to be prioritizedCopyright © 2021. All rights reserved.