Storage Engine API
mongo::Partitioner< T > Struct Template Reference

The default partitioning policy: If using a numeric built-in type, will use the lower bits of a number to decide which partition to assign it to. More...

#include <partitioned.h>

Detailed Description

template<typename T>
struct mongo::Partitioner< T >

The default partitioning policy: If using a numeric built-in type, will use the lower bits of a number to decide which partition to assign it to.

If using any other type T, you must define partitionOf(const T&, std::size_t) or specialize this template.

Public Member Functions

std::size_t operator() (const T &x, const std::size_t nPartitions)
 

Member Function Documentation

◆ operator()()

template<typename T >
std::size_t mongo::Partitioner< T >::operator() ( const T &  x,
const std::size_t  nPartitions 
)
inline

The documentation for this struct was generated from the following file: