Column-oriented GPU-accelerated Database Management System
CoGaDB
|
#include <node.hpp>
Public Types | |
typedef boost::shared_ptr< Node > | NodePtr |
Public Member Functions | |
Node (DeviceConstraint dev_constr=DeviceConstraint()) | |
virtual | ~Node () |
bool | isRoot () const |
bool | isLeaf () const |
const NodePtr | getLeft () const |
const NodePtr | getRight () const |
const NodePtr | getParent () const |
unsigned int | getLevel () |
void | setLevel (unsigned int level) |
virtual unsigned int | getOutputResultSize () const =0 |
virtual double | getSelectivity () const =0 |
virtual std::string | getOperationName () const =0 |
virtual std::string | toString (bool verbose=false) const |
void | setLeft (NodePtr left) |
void | setRight (NodePtr right) |
void | setParent (NodePtr parent) |
const DeviceConstraint & | getDeviceConstraint () const |
Protected Attributes | |
NodePtr | parent_ |
NodePtr | left_ |
NodePtr | right_ |
unsigned int | level_ |
DeviceConstraint | dev_constr_ |
typedef boost::shared_ptr<Node> hype::queryprocessing::Node::NodePtr |
hype::queryprocessing::Node::Node | ( | DeviceConstraint | dev_constr = DeviceConstraint() | ) | [inline] |
virtual hype::queryprocessing::Node::~Node | ( | ) | [inline, virtual] |
const DeviceConstraint& hype::queryprocessing::Node::getDeviceConstraint | ( | ) | const [inline] |
References dev_constr_.
Referenced by CoGaDB::query_processing::physical_operator::create_CPU_ComplexSelection_Operator().
const NodePtr hype::queryprocessing::Node::getLeft | ( | ) | const [inline] |
References left_.
unsigned int hype::queryprocessing::Node::getLevel | ( | ) | [inline] |
References level_.
virtual std::string hype::queryprocessing::Node::getOperationName | ( | ) | const [pure virtual] |
Implemented in CoGaDB::query_processing::logical_operator::Logical_Join, CoGaDB::query_processing::logical_operator::Logical_Selection, CoGaDB::query_processing::logical_operator::Logical_Sort, CoGaDB::query_processing::logical_operator::Logical_Groupby, CoGaDB::query_processing::logical_operator::Logical_ColumnAlgebraOperator, CoGaDB::query_processing::logical_operator::Logical_ColumnAlgebraOperation, CoGaDB::query_processing::logical_operator::Logical_ColumnConstantOperator, CoGaDB::query_processing::logical_operator::Logical_AddConstantValueColumn, CoGaDB::query_processing::logical_operator::Logical_Projection, CoGaDB::query_processing::logical_operator::Logical_PositionList_Operator, CoGaDB::query_processing::logical_operator::Logical_ComplexSelection, CoGaDB::query_processing::logical_operator::Logical_CPU_ColumnAlgebraOperation, CoGaDB::query_processing::logical_operator::Logical_ColumnComparatorOperation, CoGaDB::query_processing::logical_operator::Logical_CrossJoin, CoGaDB::query_processing::logical_operator::Logical_Column_Constant_Filter, CoGaDB::query_processing::logical_operator::Logical_Create_Table, CoGaDB::query_processing::logical_operator::Logical_Scan, and CoGaDB::query_processing::logical_operator::Logical_Column_Scan.
Referenced by CoGaDB::query_processing::physical_operator::create_CPU_ColumnAlgebraOperator(), CoGaDB::query_processing::physical_operator::create_CPU_ColumnComparatorOperator(), CoGaDB::query_processing::physical_operator::create_CPU_PositionList_Operator(), hype::queryprocessing::OperatorMapper< TablePtr, function >::getPhysicalOperator(), and toString().
virtual unsigned int hype::queryprocessing::Node::getOutputResultSize | ( | ) | const [pure virtual] |
Implemented in CoGaDB::query_processing::logical_operator::Logical_Join, CoGaDB::query_processing::logical_operator::Logical_Selection, CoGaDB::query_processing::logical_operator::Logical_Sort, CoGaDB::query_processing::logical_operator::Logical_Groupby, CoGaDB::query_processing::logical_operator::Logical_ColumnAlgebraOperator, CoGaDB::query_processing::logical_operator::Logical_ColumnAlgebraOperation, CoGaDB::query_processing::logical_operator::Logical_ColumnConstantOperator, CoGaDB::query_processing::logical_operator::Logical_AddConstantValueColumn, CoGaDB::query_processing::logical_operator::Logical_Projection, CoGaDB::query_processing::logical_operator::Logical_PositionList_Operator, CoGaDB::query_processing::logical_operator::Logical_ComplexSelection, CoGaDB::query_processing::logical_operator::Logical_CPU_ColumnAlgebraOperation, CoGaDB::query_processing::logical_operator::Logical_ColumnComparatorOperation, CoGaDB::query_processing::logical_operator::Logical_CrossJoin, CoGaDB::query_processing::logical_operator::Logical_Column_Constant_Filter, CoGaDB::query_processing::logical_operator::Logical_Create_Table, CoGaDB::query_processing::logical_operator::Logical_Scan, and CoGaDB::query_processing::logical_operator::Logical_Column_Scan.
const NodePtr hype::queryprocessing::Node::getParent | ( | ) | const [inline] |
References parent_.
const NodePtr hype::queryprocessing::Node::getRight | ( | ) | const [inline] |
References right_.
virtual double hype::queryprocessing::Node::getSelectivity | ( | ) | const [pure virtual] |
Implemented in hype::queryprocessing::TypedNode_Impl< Type, function >, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_crossjoin_operator>, hype::queryprocessing::TypedNode_Impl< ColumnPtr, physical_operator::map_init_function_cpu_column_algebra_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_groupby_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_projection_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_column_constant_operator>, hype::queryprocessing::TypedNode_Impl< ColumnPtr, physical_operator::map_init_function_column_algebra_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_scan_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_selection_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_join_operator>, hype::queryprocessing::TypedNode_Impl< ColumnPtr, physical_operator::map_init_function_column_scan_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_column_algebra_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_addconstantvaluecolumn_operator>, hype::queryprocessing::TypedNode_Impl< ColumnPtr, physical_operator::map_init_function_cpu_column_comparison_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_sort_operator>, hype::queryprocessing::TypedNode_Impl< ColumnPtr, physical_operator::map_init_function_cpu_positionlist_operator>, hype::queryprocessing::TypedNode_Impl< TablePtr, physical_operator::map_init_function_complex_selection_operator>, hype::queryprocessing::TypedNode_Impl< ColumnPtr, physical_operator::map_init_function_column_constant_filter_operator>, and CoGaDB::query_processing::logical_operator::Logical_AddConstantValueColumn.
bool hype::queryprocessing::Node::isLeaf | ( | ) | const [inline] |
bool hype::queryprocessing::Node::isRoot | ( | ) | const [inline] |
References parent_.
void hype::queryprocessing::Node::setLeft | ( | NodePtr | left | ) | [inline] |
References left_.
Referenced by CoGaDB::SQL::ParseTree::AtomExpression::getQueryPlan().
void hype::queryprocessing::Node::setLevel | ( | unsigned int | level | ) | [inline] |
References level_.
void hype::queryprocessing::Node::setParent | ( | NodePtr | parent | ) | [inline] |
References parent_.
void hype::queryprocessing::Node::setRight | ( | NodePtr | right | ) | [inline] |
References right_.
virtual std::string hype::queryprocessing::Node::toString | ( | bool | verbose = false | ) | const [inline, virtual] |
Reimplemented in CoGaDB::query_processing::logical_operator::Logical_Join, CoGaDB::query_processing::logical_operator::Logical_Selection, CoGaDB::query_processing::logical_operator::Logical_Sort, CoGaDB::query_processing::logical_operator::Logical_Groupby, CoGaDB::query_processing::logical_operator::Logical_ColumnAlgebraOperator, CoGaDB::query_processing::logical_operator::Logical_ColumnConstantOperator, CoGaDB::query_processing::logical_operator::Logical_AddConstantValueColumn, CoGaDB::query_processing::logical_operator::Logical_Projection, CoGaDB::query_processing::logical_operator::Logical_PositionList_Operator, CoGaDB::query_processing::logical_operator::Logical_ColumnComparatorOperation, CoGaDB::query_processing::logical_operator::Logical_ComplexSelection, CoGaDB::query_processing::logical_operator::Logical_Column_Constant_Filter, CoGaDB::query_processing::logical_operator::Logical_Column_Scan, and CoGaDB::query_processing::logical_operator::Logical_Scan.
References getOperationName(), and verbose.
Referenced by getDeviceConstraint().
NodePtr hype::queryprocessing::Node::left_ [protected] |
unsigned int hype::queryprocessing::Node::level_ [protected] |
Referenced by getLevel(), and setLevel().
NodePtr hype::queryprocessing::Node::parent_ [protected] |
Referenced by getParent(), isRoot(), and setParent().
NodePtr hype::queryprocessing::Node::right_ [protected] |