OmniSciDB
bf83d84833
|
Estimators to be used when precise cardinality isn't useful. More...
Go to the source code of this file.
Classes | |
class | CardinalityEstimationRequired |
class | Analyzer::Estimator |
class | Analyzer::NDVEstimator |
class | Analyzer::LargeNDVEstimator |
Namespaces | |
Analyzer | |
Functions | |
RelAlgExecutionUnit | create_ndv_execution_unit (const RelAlgExecutionUnit &ra_exe_unit, const int64_t range) |
RelAlgExecutionUnit | create_count_all_execution_unit (const RelAlgExecutionUnit &ra_exe_unit, std::shared_ptr< Analyzer::Expr > replacement_target) |
ResultSetPtr | reduce_estimator_results (const RelAlgExecutionUnit &ra_exe_unit, std::vector< std::pair< ResultSetPtr, std::vector< size_t >>> &results_per_device) |
Estimators to be used when precise cardinality isn't useful.
Definition in file CardinalityEstimator.h.
RelAlgExecutionUnit create_count_all_execution_unit | ( | const RelAlgExecutionUnit & | ra_exe_unit, |
std::shared_ptr< Analyzer::Expr > | replacement_target | ||
) |
Definition at line 104 of file CardinalityEstimator.cpp.
References Default, RelAlgExecutionUnit::input_col_descs, RelAlgExecutionUnit::input_descs, RelAlgExecutionUnit::join_quals, RelAlgExecutionUnit::quals, RelAlgExecutionUnit::query_state, RelAlgExecutionUnit::simple_quals, strip_join_covered_filter_quals(), and RelAlgExecutionUnit::union_all.
Referenced by RelAlgExecutor::getFilteredCountAll().
RelAlgExecutionUnit create_ndv_execution_unit | ( | const RelAlgExecutionUnit & | ra_exe_unit, |
const int64_t | range | ||
) |
Definition at line 85 of file CardinalityEstimator.cpp.
References Default, g_large_ndv_threshold, RelAlgExecutionUnit::groupby_exprs, RelAlgExecutionUnit::input_col_descs, RelAlgExecutionUnit::input_descs, RelAlgExecutionUnit::join_quals, RelAlgExecutionUnit::quals, RelAlgExecutionUnit::query_state, RelAlgExecutionUnit::simple_quals, and RelAlgExecutionUnit::union_all.
Referenced by RelAlgExecutor::getNDVEstimation().
ResultSetPtr reduce_estimator_results | ( | const RelAlgExecutionUnit & | ra_exe_unit, |
std::vector< std::pair< ResultSetPtr, std::vector< size_t >>> & | results_per_device | ||
) |
Definition at line 122 of file CardinalityEstimator.cpp.
References CHECK, and RelAlgExecutionUnit::estimator.
Referenced by Executor::reduceMultiDeviceResults().