Column-oriented GPU-accelerated Database Management System
CoGaDB
CoGaDB::SQL::ParseTree Namespace Reference

Classes

class  Statement
class  CreateTable
struct  ScalarExpression
struct  AtomExpression
struct  ColumnExpression
struct  FunctionExpression
struct  AlgebraExpression
struct  SearchCondition
struct  AndCondition
struct  OrCondition
struct  Predicate
struct  ComparisonPredicate
struct  BetweenPredicate
struct  NotBetweenPredicate
struct  TableReference
struct  TableName
struct  Join
struct  InnerJoin
struct  CrossJoin
struct  OrderBy
class  InsertInto
struct  TableExpression
class  SelectFrom
class  Sequence

Typedefs

typedef std::string String
typedef boost::any Integer
typedef CoGaDB::AggregationMethod AggregationFunction
typedef boost::shared_ptr
< Statement
StatementPtr
typedef CoGaDB::AttributeType AttributeType
typedef CoGaDB::Attribut Attribute
typedef CoGaDB::TableSchema TableSchema
typedef CoGaDB::Table Table
typedef CoGaDB::TablePtr TablePtr
typedef
query_processing::LogicalQueryPlan::TypedNodePtr 
TypedNodePtr
typedef boost::shared_ptr
< ScalarExpression
ScalarExpressionPtr
typedef std::list
< ScalarExpressionPtr
ScalarExpressionList
typedef boost::shared_ptr
< ScalarExpressionList
ScalarExpressionListPtr
typedef boost::shared_ptr
< AtomExpression
AtomExpressionPtr
typedef boost::shared_ptr
< ColumnExpression
ColumnExpressionPtr
typedef boost::shared_ptr
< FunctionExpression
FunctionExpressionPtr
typedef
CoGaDB::ColumnAlgebraOperation 
ColumnAlgebraOperation
typedef boost::shared_ptr
< SearchCondition
SearchConditionPtr
typedef boost::shared_ptr
< AndCondition
AndConditionPtr
typedef boost::shared_ptr
< OrCondition
OrConditionPtr
typedef boost::shared_ptr
< ComparisonPredicate
ComparisonPredicatePtr
typedef boost::shared_ptr
< TableReference
TableReferencePtr
typedef std::list
< TableReferencePtr
TableReferenceList
typedef boost::shared_ptr
< TableName
TableNamePtr
typedef boost::shared_ptr
< InnerJoin
InnerJoinPtr
typedef boost::shared_ptr
< CrossJoin
CrossJoinPtr
typedef std::list< StringColumnList
typedef boost::shared_ptr
< ColumnList
ColumnListPtr
typedef CoGaDB::Tuple Tuple
typedef CoGaDB::SortOrder SortOrder
typedef std::pair< String,
SortOrder
OrderingSpec
typedef boost::shared_ptr
< OrderBy
OrderByPtr
typedef boost::shared_ptr
< Sequence
SequencePtr

Enumerations

enum  ValueComparator {
  LESSER, LESSER_EQUAL, GREATER, GREATER_EQUAL,
  EQUAL, UNEQUAL
}
 Operators supported by ComparisonPredicate. More...

Functions

static CoGaDB::Predicate make_pred (const std::string &column, const boost::any &value, PredicateType pred, CoGaDB::ValueComparator comp)
 Construct CoGaDB::Predicate.

Typedef Documentation

typedef boost::shared_ptr<CrossJoin> CoGaDB::SQL::ParseTree::CrossJoinPtr
typedef boost::shared_ptr<InnerJoin> CoGaDB::SQL::ParseTree::InnerJoinPtr
typedef boost::any CoGaDB::SQL::ParseTree::Integer
typedef boost::shared_ptr<OrderBy> CoGaDB::SQL::ParseTree::OrderByPtr
typedef boost::shared_ptr<Sequence> CoGaDB::SQL::ParseTree::SequencePtr
typedef boost::shared_ptr<Statement> CoGaDB::SQL::ParseTree::StatementPtr
typedef std::string CoGaDB::SQL::ParseTree::String
typedef boost::shared_ptr<TableName> CoGaDB::SQL::ParseTree::TableNamePtr

Enumeration Type Documentation

Operators supported by ComparisonPredicate.

It is not merely a typedef to CoGaDB::ValueComparator, so we can implement a broader set of operators on top of CoGaDB's very limited set.

Enumerator:
LESSER 
LESSER_EQUAL 
GREATER 
GREATER_EQUAL 
EQUAL 
UNEQUAL 

Function Documentation

static CoGaDB::Predicate CoGaDB::SQL::ParseTree::make_pred ( const std::string &  column,
const boost::any &  value,
PredicateType  pred,
CoGaDB::ValueComparator  comp 
) [static]

Construct CoGaDB::Predicate.

It resolves boost::any to strings for ValueValuePredicates.

Parameters:
columnName of column to compare
valueValue or name of column to compare with
predPredicate type
compComparison operator
Returns:
a CoGaDB::Predicate

References CoGaDB::ValueValuePredicate.

Referenced by CoGaDB::SQL::ParseTree::ComparisonPredicate::getCNF().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines