1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

remove unneeded shared methods

Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
This commit is contained in:
Michael Okoko
2021-07-29 23:21:43 +01:00
committed by Sergei Petrunia
parent 1fa7af749e
commit 9bba595528
2 changed files with 9 additions and 17 deletions

View File

@ -171,11 +171,6 @@ public:
virtual double range_selectivity(double min_pos, double max_pos)=0;
virtual double point_selectivity(double pos, double avg_selection)=0;
// Legacy: return the size of the histogram on disk.
// This will be stored in mysql.column_stats.hist_size column.
// Newer, JSON-based histograms may return 0.
virtual uint get_size()=0;
virtual ~Histogram_base(){}
};
@ -189,8 +184,6 @@ public:
Histogram_type get_type() override { return type; }
uint get_size() override { return (uint) size; }
uint get_width() override
{
switch (type) {
@ -283,7 +276,7 @@ public:
void set_values (uchar *vals) override { values= (uchar *) vals; }
void set_size (ulonglong sz) override { size= (uint8) sz; }
bool is_available() override { return get_size() > 0 && get_values(); }
bool is_available() override { return get_width() > 0 && get_values(); }
/*
This function checks that histograms should be usable only when
@ -354,8 +347,6 @@ public:
void serialize(Field *to_field) override{}
uint get_size() override {return (uint) size;}
// returns number of buckets in the histogram
uint get_width() override
{
@ -371,7 +362,7 @@ public:
void init_for_collection(MEM_ROOT *mem_root, Histogram_type htype_arg, ulonglong size) override;
bool is_available() override {return get_size() > 0 && get_values(); }
bool is_available() override {return get_width() > 0 && get_values(); }
bool is_usable(THD *thd) override
{