Runs the collStats
command and returns the results
Runs the collStats
command and returns the results
the MongoConnector
the readConfig
the collStats result
Creates the upper and lower boundary query for the given key
Creates the upper and lower boundary query for the given key
the key that represents the values that can be partitioned
the value of the lower bound
the value of the upper bound
the document containing the partition bounds
Creates partitions using a single Seq of documents representing the right handside of partitions
Creates partitions using a single Seq of documents representing the right handside of partitions
the key representing the partition most likely the _id
.
the documents representing a split
the optional server hostnames for the data
add min and maxkey query bounds.
Checks an aggregation pipeline to see if it starts with a range based query that is suitable for the SplitVector
command.
Checks an aggregation pipeline to see if it starts with a range based query that is suitable for the SplitVector
command.
If it does it returns the $match
filter otherwise None
the aggregation pipeline
the min and max keys for the pipeline
2.1
Get the locations of the Mongo hosts
Get the locations of the Mongo hosts
the MongoConnector
the locations
Returns the head $match
from a pipeline
Returns the head $match
from a pipeline
the users pipeline
the head $match
or an empty BsonDocument
.
Sets the final boundary to use $lte
rather than $lt
so that boundaries with users provided queries have the correct upper bound
Sets the final boundary to use $lte
rather than $lt
so that boundaries with users provided queries have the correct upper bound
the partition key
the partitions
the updated partitions
2.1
:: DeveloperApi ::
Helper methods for partitioner implementations
1.0