![]() |
MySQL 9.5.0
Source Code Documentation
|
This class produces an estimate of the size of each field in a table. More...
Classes | |
| struct | Estimate |
| A size estimate for a field. More... | |
Public Types | |
| using | EstimateArray = Prealloced_array< Estimate, 32 > |
| Size estimates for all fields. More... | |
Public Member Functions | |
| FieldSizeEstimator (const TABLE *table) | |
| const EstimateArray & | estimates () const |
Private Attributes | |
| EstimateArray | m_estimates {PSI_NOT_INSTRUMENTED} |
| Size estimates for all fields. More... | |
This class produces an estimate of the size of each field in a table.
For fixed-size fields, the estimates should be accurate. But since there is no statistics on the length of variable size fields, we use heuristics to estimate these.
| using FieldSizeEstimator::EstimateArray = Prealloced_array<Estimate, 32> |
Size estimates for all fields.
|
explicit |
|
inline |
|
private |
Size estimates for all fields.