MySQL 8.0.29
Source Code Documentation
compare_access_paths.h File Reference
#include <assert.h>
#include <stdint.h>
#include <cmath>
#include "sql/join_optimizer/access_path.h"
#include "sql/join_optimizer/interesting_orders.h"

Go to the source code of this file.

Enumerations

enum class  FuzzyComparisonResult : uint32_t {
  IDENTICAL = 0 , FIRST_BETTER = 1 , SECOND_BETTER = 2 , FIRST_SLIGHTLY_BETTER = 4 ,
  SECOND_SLIGHTLY_BETTER = 8
}
 
enum class  PathComparisonResult { FIRST_DOMINATES , SECOND_DOMINATES , DIFFERENT_STRENGTHS , IDENTICAL }
 

Functions

FuzzyComparisonResult FuzzyComparison (double x, double y, double fuzz_factor)
 
PathComparisonResult CompareAccessPaths (const LogicalOrderings &orderings, const AccessPath &a, const AccessPath &b, OrderingSet obsolete_orderings)
 

Enumeration Type Documentation

◆ FuzzyComparisonResult

enum class FuzzyComparisonResult : uint32_t
strong
Enumerator
IDENTICAL 
FIRST_BETTER 
SECOND_BETTER 
FIRST_SLIGHTLY_BETTER 
SECOND_SLIGHTLY_BETTER 

◆ PathComparisonResult

enum class PathComparisonResult
strong
Enumerator
FIRST_DOMINATES 
SECOND_DOMINATES 
DIFFERENT_STRENGTHS 
IDENTICAL 

Function Documentation

◆ CompareAccessPaths()

PathComparisonResult CompareAccessPaths ( const LogicalOrderings orderings,
const AccessPath a,
const AccessPath b,
OrderingSet  obsolete_orderings 
)

◆ FuzzyComparison()

FuzzyComparisonResult FuzzyComparison ( double  x,
double  y,
double  fuzz_factor 
)
inline