Class SinglePartitionPartitioner

  • All Implemented Interfaces:
    Partitioner

    @ThreadSafe
    public final class SinglePartitionPartitioner
    extends java.lang.Object
    implements Partitioner
    Single Partition Partitioner

    Creates a single partition and includes any user provided aggregation pipelines.

    • Constructor Detail

      • SinglePartitionPartitioner

        public SinglePartitionPartitioner()
        Construct an instance
    • Method Detail

      • generatePartitions

        public java.util.List<MongoInputPartition> generatePartitions​(ReadConfig readConfig)
        Description copied from interface: Partitioner
        Generate the partitions for the collection based upon the read configuration
        Specified by:
        generatePartitions in interface Partitioner
        Parameters:
        readConfig - the read configuration
        Returns:
        the partitions