OmniSciDB
3a86f6ec37
|
#include "CardinalityEstimator.h"
#include "ErrorHandling.h"
#include "ExpressionRewrite.h"
#include "RelAlgExecutor.h"
Go to the source code of this file.
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) |
Variables | |
int64_t | g_large_ndv_threshold = 10000000 |
size_t | g_large_ndv_multiplier = 256 |
RelAlgExecutionUnit create_count_all_execution_unit | ( | const RelAlgExecutionUnit & | ra_exe_unit, |
std::shared_ptr< Analyzer::Expr > | replacement_target | ||
) |
Definition at line 105 of file CardinalityEstimator.cpp.
References Default, RelAlgExecutionUnit::input_col_descs, RelAlgExecutionUnit::input_descs, RelAlgExecutionUnit::join_quals, RelAlgExecutionUnit::quals, RelAlgExecutionUnit::query_hint, RelAlgExecutionUnit::query_state, RelAlgExecutionUnit::simple_quals, strip_join_covered_filter_quals(), and RelAlgExecutionUnit::union_all.
Referenced by RelAlgExecutor::getFilteredCountAll(), and Analyzer::LargeNDVEstimator::LargeNDVEstimator().
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_hint, RelAlgExecutionUnit::query_state, RelAlgExecutionUnit::simple_quals, and RelAlgExecutionUnit::union_all.
Referenced by RelAlgExecutor::getNDVEstimation(), and Analyzer::LargeNDVEstimator::LargeNDVEstimator().
ResultSetPtr reduce_estimator_results | ( | const RelAlgExecutionUnit & | ra_exe_unit, |
std::vector< std::pair< ResultSetPtr, std::vector< size_t >>> & | results_per_device | ||
) |
Definition at line 124 of file CardinalityEstimator.cpp.
References CHECK, and RelAlgExecutionUnit::estimator.
Referenced by Analyzer::LargeNDVEstimator::LargeNDVEstimator(), and Executor::reduceMultiDeviceResults().
size_t g_large_ndv_multiplier = 256 |
Definition at line 23 of file CardinalityEstimator.cpp.
Referenced by CommandLineOptions::fillAdvancedOptions(), and Analyzer::LargeNDVEstimator::getBufferSize().
int64_t g_large_ndv_threshold = 10000000 |
Definition at line 22 of file CardinalityEstimator.cpp.
Referenced by create_ndv_execution_unit(), and CommandLineOptions::fillAdvancedOptions().