Interface Partitioner
-
- All Known Implementing Classes:
PaginateBySizePartitioner
,PaginateIntoPartitionsPartitioner
,SamplePartitioner
,ShardedPartitioner
,SinglePartitionPartitioner
public interface Partitioner
The Partitioner provides the logic to partition a collection individual processable partitions.The Partitioner must provide unique partitions without any duplicates or overlapping partitions.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOGGER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<MongoInputPartition>
generatePartitions(ReadConfig readConfig)
Generate the partitions for the collection based upon the read configuration
-
-
-
Method Detail
-
generatePartitions
java.util.List<MongoInputPartition> generatePartitions(ReadConfig readConfig)
Generate the partitions for the collection based upon the read configuration- Parameters:
readConfig
- the read configuration- Returns:
- the partitions
-
-