Class SinglePartitionPartitioner
- java.lang.Object
-
- com.mongodb.spark.sql.connector.read.partitioner.SinglePartitionPartitioner
-
- All Implemented Interfaces:
Partitioner
@ThreadSafe public final class SinglePartitionPartitioner extends java.lang.Object implements Partitioner
Single Partition PartitionerCreates a single partition and includes any user provided aggregation pipelines.
-
-
Field Summary
-
Fields inherited from interface com.mongodb.spark.sql.connector.read.partitioner.Partitioner
LOGGER
-
-
Constructor Summary
Constructors Constructor Description SinglePartitionPartitioner()
Construct an instance
-
Method Summary
All Methods Instance Methods Concrete 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
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 interfacePartitioner
- Parameters:
readConfig
- the read configuration- Returns:
- the partitions
-
-