OmniSciDB
a5dc49c757
|
#include <Analyzer.h>
Public Member Functions | |
GeoOperator (const SQLTypeInfo &ti, const std::string &name, const std::vector< std::shared_ptr< Analyzer::Expr >> &args, const std::optional< int > &output_srid_override=std::nullopt) | |
std::shared_ptr< Analyzer::Expr > | deep_copy () const override |
void | collect_rte_idx (std::set< int > &rte_idx_set) const final |
void | collect_column_var (std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &colvar_set, bool include_agg) const final |
std::string | toString () const override |
bool | operator== (const Expr &) const override |
size_t | size () const |
Analyzer::Expr * | getOperand (const size_t index) const |
const std::string & | getName () const |
std::vector< std::shared_ptr < Analyzer::Expr > > | getArgs () const |
std::vector< Analyzer::Expr * > | getChildExprs () const override |
std::shared_ptr< Analyzer::Expr > | add_cast (const SQLTypeInfo &new_type_info) final |
auto | getOutputSridOverride () const |
Public Member Functions inherited from Analyzer::GeoExpr | |
GeoExpr (const SQLTypeInfo &ti) | |
Public Member Functions inherited from Analyzer::Expr | |
Expr (SQLTypes t, bool notnull) | |
Expr (SQLTypes t, int d, bool notnull) | |
Expr (SQLTypes t, int d, int s, bool notnull) | |
Expr (const SQLTypeInfo &ti, bool has_agg=false) | |
virtual | ~Expr () |
std::shared_ptr< Analyzer::Expr > | get_shared_ptr () |
const SQLTypeInfo & | get_type_info () const |
void | set_type_info (const SQLTypeInfo &ti) |
bool | get_contains_agg () const |
void | set_contains_agg (bool a) |
virtual void | check_group_by (const std::list< std::shared_ptr< Analyzer::Expr >> &groupby) const |
virtual std::shared_ptr < Analyzer::Expr > | normalize_simple_predicate (int &rte_idx) const |
virtual void | group_predicates (std::list< const Expr * > &scan_predicates, std::list< const Expr * > &join_predicates, std::list< const Expr * > &const_predicates) const |
virtual size_t | get_num_column_vars (const bool include_agg) const |
virtual std::shared_ptr < Analyzer::Expr > | rewrite_with_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const |
virtual std::shared_ptr < Analyzer::Expr > | rewrite_with_child_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const |
virtual std::shared_ptr < Analyzer::Expr > | rewrite_agg_to_var (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const |
virtual void | print () const |
virtual void | add_unique (std::list< const Expr * > &expr_list) const |
virtual void | find_expr (std::function< bool(const Expr *)> f, std::list< const Expr * > &expr_list) const |
std::shared_ptr< Analyzer::Expr > | decompress () |
virtual void | get_domain (DomainSet &domain_set) const |
Protected Attributes | |
const std::string | name_ |
const std::vector < std::shared_ptr < Analyzer::Expr > > | args_ |
std::optional< int > | output_srid_override_ |
Protected Attributes inherited from Analyzer::Expr | |
SQLTypeInfo | type_info |
bool | contains_agg |
GeoOperator: A geo expression that transforms or accesses an input. Typically a geospatial function prefixed with ST_
Definition at line 3274 of file Analyzer.h.
Analyzer::GeoOperator::GeoOperator | ( | const SQLTypeInfo & | ti, |
const std::string & | name, | ||
const std::vector< std::shared_ptr< Analyzer::Expr >> & | args, | ||
const std::optional< int > & | output_srid_override = std::nullopt |
||
) |
Definition at line 4150 of file Analyzer.cpp.
|
finalvirtual |
Reimplemented from Analyzer::Expr.
Definition at line 4220 of file Analyzer.cpp.
References run_benchmark_import::args, args_, CHECK, deep_copy(), Analyzer::Expr::get_type_info(), SQLTypeInfo::is_geometry(), SQLTypeInfo::is_string(), SQLTypeInfo::is_text_encoding_dict(), kCAST, Analyzer::anonymous_namespace{Analyzer.cpp}::make_transient_dict_type(), name_, and output_srid_override_.
|
finalvirtual |
Reimplemented from Analyzer::Expr.
Definition at line 4174 of file Analyzer.cpp.
References getOperand(), and size().
Referenced by anonymous_namespace{GeoIR.cpp}::mark_logical_column_to_fetch().
|
finalvirtual |
Reimplemented from Analyzer::Expr.
Definition at line 4167 of file Analyzer.cpp.
References getOperand(), and size().
|
overridevirtual |
Implements Analyzer::Expr.
Reimplemented in Analyzer::GeoTransformOperator.
Definition at line 4159 of file Analyzer.cpp.
References run_benchmark_import::args, args_, name_, output_srid_override_, and Analyzer::Expr::type_info.
Referenced by add_cast().
|
inline |
Definition at line 3300 of file Analyzer.h.
References args_.
|
inlineoverridevirtual |
Reimplemented from Analyzer::GeoExpr.
Definition at line 3302 of file Analyzer.h.
References args_.
|
inline |
Definition at line 3298 of file Analyzer.h.
References name_.
Referenced by spatial_type::PointAccessors::codegen(), CodeGenerator::codegenGeoOperator(), spatial_type::PointConstructor::codegenLoads(), spatial_type::Codegen::getName(), spatial_type::Codegen::init(), operator==(), and Analyzer::GeoTransformOperator::operator==().
Analyzer::Expr * Analyzer::GeoOperator::getOperand | ( | const size_t | index | ) | const |
Definition at line 4215 of file Analyzer.cpp.
References args_, and CHECK_LT.
Referenced by spatial_type::NPoints::codegenLoads(), collect_column_var(), collect_rte_idx(), spatial_type::NRings::getOperand(), spatial_type::NPoints::getOperand(), spatial_type::NumGeometries::getOperand(), spatial_type::Codegen::getOperand(), spatial_type::NumGeometries::getOperandTypeInfo(), operator==(), and Analyzer::GeoTransformOperator::operator==().
|
inline |
Definition at line 3313 of file Analyzer.h.
References output_srid_override_.
|
overridevirtual |
Implements Analyzer::Expr.
Reimplemented in Analyzer::GeoTransformOperator.
Definition at line 4192 of file Analyzer.cpp.
References args_, getName(), getOperand(), and size().
size_t Analyzer::GeoOperator::size | ( | ) | const |
Definition at line 4211 of file Analyzer.cpp.
References args_.
Referenced by spatial_type::AreaPerimeter::AreaPerimeter(), spatial_type::Centroid::Centroid(), collect_column_var(), collect_rte_idx(), spatial_type::Distance::Distance(), spatial_type::Codegen::getOperand(), operator==(), Analyzer::GeoTransformOperator::operator==(), spatial_type::PointAccessors::PointAccessors(), spatial_type::PointConstructor::PointConstructor(), spatial_type::PointN::PointN(), spatial_type::StartEndPoint::StartEndPoint(), and spatial_type::Transform::Transform().
|
overridevirtual |
Implements Analyzer::Expr.
Reimplemented in Analyzer::GeoTransformOperator.
Definition at line 4183 of file Analyzer.cpp.
Referenced by CodeGenerator::codegenGeoOperator(), and spatial_type::PointAccessors::codegenLoads().
|
protected |
Definition at line 3317 of file Analyzer.h.
Referenced by add_cast(), deep_copy(), Analyzer::GeoTransformOperator::deep_copy(), getArgs(), getChildExprs(), getOperand(), operator==(), Analyzer::GeoTransformOperator::operator==(), size(), toString(), and Analyzer::GeoTransformOperator::toString().
|
protected |
Definition at line 3316 of file Analyzer.h.
Referenced by add_cast(), deep_copy(), Analyzer::GeoTransformOperator::deep_copy(), getName(), toString(), and Analyzer::GeoTransformOperator::toString().
|
protected |
Definition at line 3320 of file Analyzer.h.
Referenced by add_cast(), deep_copy(), and getOutputSridOverride().