@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).
| Constructor and Description |
|---|
MongoSampleSplitter() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<MongoScanSourceSplit> |
split(MongoSplitContext splitContext) |
public static Collection<MongoScanSourceSplit> split(MongoSplitContext splitContext)
Copyright © 2022–2025 The Apache Software Foundation. All rights reserved.