MySQL 8.4.0
Source Code Documentation
histograms::HistogramSetting Struct Reference

A simple struct containing the settings for a histogram to be built. More...

#include <histogram.h>

Public Attributes

const char * column_name
 A null-terminated C-style string with the name of the column to build the histogram for. More...
 
size_t num_buckets = 100
 The target number of buckets for the histogram. More...
 
LEX_STRING data = {nullptr, 0}
 Holds the JSON specification of the histogram for the UPDATE HISTOGRAM ... USING DATA command, otherwise empty. More...
 
bool auto_update = false
 True if AUTO UPDATE, false for MANUAL UPDATE. More...
 
Fieldfield = nullptr
 A pointer to the field, used internally by update_histograms(). More...
 

Detailed Description

A simple struct containing the settings for a histogram to be built.

Member Data Documentation

◆ auto_update

bool histograms::HistogramSetting::auto_update = false

True if AUTO UPDATE, false for MANUAL UPDATE.

◆ column_name

const char* histograms::HistogramSetting::column_name

A null-terminated C-style string with the name of the column to build the histogram for.

◆ data

LEX_STRING histograms::HistogramSetting::data = {nullptr, 0}

Holds the JSON specification of the histogram for the UPDATE HISTOGRAM ... USING DATA command, otherwise empty.

◆ field

Field* histograms::HistogramSetting::field = nullptr

A pointer to the field, used internally by update_histograms().

◆ num_buckets

size_t histograms::HistogramSetting::num_buckets = 100

The target number of buckets for the histogram.


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