/** * @brief Calulate the partition id into which the attribute value * should be inserted. * * @param value_of_attribute The attribute value for which the * partition id is to be determined. * @return The partition id of the partition for the attribute value. **/ const partition_id getPartitionId( const TypedValue &value_of_attribute) const override { // TODO(gerald): Optimize for the case where the number of partitions is a // power of 2. We can just mask out the lower-order hash bits rather than // doing a division operation. return value_of_attribute.getHash() % num_partitions_; }