@Internal public class MongoSampleSplitter extends Object
Samples the collection to generate partitions.
Uses the average document size to split the collection into average sized chunks
The partitioner samples the collection, projects and sorts by the partition fields. Then uses
every samplesPerPartition as the value to use to calculate the partition boundaries.
samples per partition * (count of
documents / number of documents per partition).
| 构造器和说明 |
|---|
MongoSampleSplitter() |
public static Collection<MongoScanSourceSplit> split(MongoSplitContext splitContext)
Copyright © 2022–2024 The Apache Software Foundation. All rights reserved.