Class/Object
com.mongodb.spark.rdd.partitioner
MongoShardedPartitioner
Related Docs: object MongoShardedPartitioner | package partitioner
class MongoShardedPartitioner extends Logging with MongoPartitioner
The Sharded Partitioner
Partitions collections by shard and chunk.
Configuration Properties
The prefix when using sparkConf is: spark.mongodb.input.partitionerOptions followed by the property name:
shardKey, the shardKey for the collection. Defaults to _id.
Since
1.0
Linear Supertypes
Known Subclasses
Ordering
Alphabetic
By Inheritance
Inherited
MongoShardedPartitioner
MongoPartitioner
Serializable
Serializable
Logging
LoggingTrait
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new MongoShardedPartitioner()
Value Members
def partitions(connector: MongoConnector, readConfig: ReadConfig, pipeline: Array[BsonDocument]): Array[MongoPartition]
Calculate the Partitions
val shardKeyProperty: String
The shardKey property