WL#8707: Classes/structures for Histograms

Affects: Server-8.0   —   Status: Complete

This worklog gives an overview of the new classes necessary to implement
histogram statistics in MySQL. We will introduce four new classes, where most of
the classes will be templatized so that different data types can be handled
differently. For instance, we want/need to handle strings quite different from
numeric values.

This worklog will not define the final version of the classes, but only the
interfaces needed to implement ANALYZE TABLE with histogram support. This is to
keep the scope of this WL as small as possible. The classes
will be expanded further by Histogram caching.

We will implement the necessary functions for building both singleton and
equi-height histograms, as well as serializing the histograms to JSON format.
This worklog will not have any visible effect to MySQL users, as it won't expose
any new SQL functions or alter any existing behavior.

User Documentation
==================

No user-visible changes. No user documentation needed.