TaQLNodeDer.h

Classes

TaQLConstNodeRep -- Raw TaQL parse tree node defining a constant value. (full description)
TaQLUnaryNodeRep -- Raw TaQL parse tree node defining a unary operator. (full description)
TaQLBinaryNodeRep -- Raw TaQL parse tree node defining a binary operator. (full description)
TaQLMultiNodeRep -- Raw TaQL parse tree node defining a list of nodes. (full description)
TaQLFuncNodeRep -- Raw TaQL parse tree node defining a function. (full description)
TaQLRangeNodeRep -- Raw TaQL parse tree node defining a range. (full description)
TaQLIndexNodeRep -- Raw TaQL parse tree node defining an index in a array. (full description)
TaQLJoinNodeRep -- Raw TaQL parse tree node defining a join operation. (full description)
TaQLKeyColNodeRep -- Raw TaQL parse tree node defining a keyword or column. (full description)
TaQLTableNodeRep -- Raw TaQL parse tree node defining a table. (full description)
TaQLColNodeRep -- Raw TaQL parse tree node defining a select column expression. (full description)
TaQLColumnsNodeRep -- Raw TaQL parse tree node defining a select column list. (full description)
TaQLSortKeyNodeRep -- Raw TaQL parse tree node defining a sort key. (full description)
TaQLSortNodeRep -- Raw TaQL parse tree node defining a sort list. (full description)
TaQLLimitOffNodeRep -- Raw TaQL parse tree node defining a limit/offset expression. (full description)
TaQLGivingNodeRep -- Raw TaQL parse tree node defining a giving expression list. (full description)
TaQLUpdExprNodeRep -- Raw TaQL parse tree node defining a column update expression. (full description)
TaQLSelectNodeRep -- Raw TaQL parse tree node defining a select command. (full description)
TaQLUpdateNodeRep -- Raw TaQL parse tree node defining an update command. (full description)
TaQLInsertNodeRep -- Raw TaQL parse tree node defining an insert command. (full description)
TaQLDeleteNodeRep -- Raw TaQL parse tree node defining a delete command. (full description)
TaQLCalcNodeRep -- Raw TaQL parse tree node defining a calc command. (full description)
TaQLCreTabNodeRep -- Raw TaQL parse tree node defining a create table command. (full description)
TaQLColSpecNodeRep -- Raw TaQL parse tree node defining a create column specification. (full description)
TaQLRecFldNodeRep -- Raw TaQL parse tree node defining a record field. (full description)

class TaQLConstNodeRep: public TaQLNodeRep

Types

enum Type

CTBool = 0
CTInt = 1
CTReal = 2
CTComplex = 3
CTString = 4
CTTime = 5

Interface

Public Members
explicit TaQLConstNodeRep (Bool value) : value (TaQLNode_Const), itsType(CTBool), itsIsTableName(False), itsBValue(value)
explicit TaQLConstNodeRep (Int value, Bool isTableName=False) : isTableName (TaQLNode_Const), itsType(CTInt), itsIsTableName(isTableName), itsIValue(value), itsRValue(value), itsCValue(value,0.)
explicit TaQLConstNodeRep (Double value) : value (TaQLNode_Const), itsType(CTReal), itsIsTableName(False), itsRValue(value), itsCValue(value,0.)
explicit TaQLConstNodeRep (DComplex value) : TaQLNodeRep (TaQLNode_Const), itsType(CTComplex), itsIsTableName(False), itsCValue(value)
explicit TaQLConstNodeRep (const String& value, Bool isTableName=False) : TaQLNodeRep (TaQLNode_Const), itsType(CTString), itsIsTableName(isTableName), itsSValue(value)
explicit TaQLConstNodeRep (const MVTime& value) : TaQLNodeRep (TaQLNode_Const), itsType(CTTime), itsIsTableName(False), itsRValue(value), itsCValue(value,0.), itsTValue(value)
virtual ~TaQLConstNodeRep()
void setIsTableName()
const String& getString() const
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLConstNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a constant expression or a table name. The types supported are Bool, Int, Double, DComplex, String, and MVTime. Note that a keyword and column name is represented by TaQLKeyColNodeRep.

Member Description

enum Type

Do not change the values of this enum, as objects might be persistent.

explicit TaQLConstNodeRep (Bool value) : value (TaQLNode_Const), itsType(CTBool), itsIsTableName(False), itsBValue(value)

explicit TaQLConstNodeRep (Int value, Bool isTableName=False) : isTableName (TaQLNode_Const), itsType(CTInt), itsIsTableName(isTableName), itsIValue(value), itsRValue(value), itsCValue(value,0.)

explicit TaQLConstNodeRep (Double value) : value (TaQLNode_Const), itsType(CTReal), itsIsTableName(False), itsRValue(value), itsCValue(value,0.)

explicit TaQLConstNodeRep (DComplex value) : TaQLNodeRep (TaQLNode_Const), itsType(CTComplex), itsIsTableName(False), itsCValue(value)

explicit TaQLConstNodeRep (const String& value, Bool isTableName=False) : TaQLNodeRep (TaQLNode_Const), itsType(CTString), itsIsTableName(isTableName), itsSValue(value)

explicit TaQLConstNodeRep (const MVTime& value) : TaQLNodeRep (TaQLNode_Const), itsType(CTTime), itsIsTableName(False), itsRValue(value), itsCValue(value,0.), itsTValue(value)

virtual ~TaQLConstNodeRep()

void setIsTableName()

const String& getString() const

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLConstNodeRep* restore (AipsIO& aio)


class TaQLUnaryNodeRep: public TaQLNodeRep

Types

enum Type

U_MINUS = 0
U_NOT = 1
U_EXISTS = 2
U_NOTEXISTS = 3

Interface

TaQLUnaryNodeRep (Type type, const TaQLNode& child) : TaQLNodeRep (TaQLNode_Unary), itsType(type), itsChild(child)
virtual ~TaQLUnaryNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLUnaryNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a unary operator and operand. The operators supported are -, NOT, EXISTS, and NOT EXISTS. Note the unary operator + is superfuous and is ignored by the parser.

Member Description

enum Type

Do not change the values of this enum, as objects might be persistent.

TaQLUnaryNodeRep (Type type, const TaQLNode& child) : TaQLNodeRep (TaQLNode_Unary), itsType(type), itsChild(child)

virtual ~TaQLUnaryNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLUnaryNodeRep* restore (AipsIO& aio)


class TaQLBinaryNodeRep: public TaQLNodeRep

Types

enum Type

B_PLUS = 0
B_MINUS = 1
B_TIMES = 2
B_DIVIDE = 3
B_MODULO = 4
B_POWER = 5
B_EQ = 6
B_NE = 7
B_GT = 8
B_GE = 9
B_LT = 10
B_LE = 11
B_OR = 12
B_AND = 13
B_IN = 14
B_INDEX = 15

Interface

TaQLBinaryNodeRep (Type type, const TaQLNode& left, const TaQLNode& right) : TaQLNodeRep (TaQLNode_Binary), itsType(type), itsLeft(left), itsRight(right)
virtual ~TaQLBinaryNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLBinaryNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a binary operator and operands. All standard mathematical (including % and ^), relational, and logical operators are supported. Furthermore operator IN and the INDEX operator (for indexing in an array) are supported.

Member Description

enum Type

Do not change the values of this enum, as objects might be persistent.

TaQLBinaryNodeRep (Type type, const TaQLNode& left, const TaQLNode& right) : TaQLNodeRep (TaQLNode_Binary), itsType(type), itsLeft(left), itsRight(right)

virtual ~TaQLBinaryNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLBinaryNodeRep* restore (AipsIO& aio)


class TaQLMultiNodeRep: public TaQLNodeRep

Interface

explicit TaQLMultiNodeRep (Bool isSetOrArray=False) : TaQLNodeRep (TaQLNode_Multi), itsIsSetOrArray(isSetOrArray)
TaQLMultiNodeRep(const String& prefix, const String& postfix, Bool isSetOrArray=False) : isSetOrArray (TaQLNode_Multi), itsIsSetOrArray(isSetOrArray), itsPrefix(prefix), itsPostfix(postfix)
virtual ~TaQLMultiNodeRep()
void setIsSetOrArray()
void setPPFix (const String& prefix, const String& postfix)
void add (const TaQLNode& node)
const std::vector<vector>& getNodes()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLMultiNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a list of heterogeneous nodes.

Member Description

explicit TaQLMultiNodeRep (Bool isSetOrArray=False) : TaQLNodeRep (TaQLNode_Multi), itsIsSetOrArray(isSetOrArray)

TaQLMultiNodeRep(const String& prefix, const String& postfix, Bool isSetOrArray=False) : isSetOrArray (TaQLNode_Multi), itsIsSetOrArray(isSetOrArray), itsPrefix(prefix), itsPostfix(postfix)

virtual ~TaQLMultiNodeRep()

void setIsSetOrArray()

void setPPFix (const String& prefix, const String& postfix)

void add (const TaQLNode& node)

const std::vector<vector>& getNodes()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLMultiNodeRep* restore (AipsIO& aio)


class TaQLFuncNodeRep: public TaQLNodeRep

Interface

TaQLFuncNodeRep (const String& name, const TaQLMultiNode& args) : TaQLNodeRep (TaQLNode_Func), itsName(name), itsArgs(args)
virtual ~TaQLFuncNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLFuncNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a function name and its arguments.

Member Description

TaQLFuncNodeRep (const String& name, const TaQLMultiNode& args) : TaQLNodeRep (TaQLNode_Func), itsName(name), itsArgs(args)

virtual ~TaQLFuncNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLFuncNodeRep* restore (AipsIO& aio)


class TaQLRangeNodeRep: public TaQLNodeRep

Interface

TaQLRangeNodeRep (Bool leftClosed, TaQLNode start, const TaQLNode& end, Bool rightClosed) : TaQLNodeRep (TaQLNode_Range), itsLeftClosed(leftClosed), itsStart(start), itsEnd(end), itsRightClosed(rightClosed)
TaQLRangeNodeRep (Bool leftClosed, const TaQLNode& start) : TaQLNodeRep (TaQLNode_Range), itsLeftClosed(leftClosed), itsStart(start), itsEnd(), itsRightClosed(False)
TaQLRangeNodeRep (const TaQLNode& end, Bool rightClosed) : TaQLNodeRep (TaQLNode_Range), itsLeftClosed(False), itsStart(), itsEnd(end), itsRightClosed(rightClosed)
virtual ~TaQLRangeNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLRangeNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the optional start and end values of a range (i.e. an interval) and flags if the range is open or closed.

Member Description

TaQLRangeNodeRep (Bool leftClosed, TaQLNode start, const TaQLNode& end, Bool rightClosed) : TaQLNodeRep (TaQLNode_Range), itsLeftClosed(leftClosed), itsStart(start), itsEnd(end), itsRightClosed(rightClosed)

TaQLRangeNodeRep (Bool leftClosed, const TaQLNode& start) : TaQLNodeRep (TaQLNode_Range), itsLeftClosed(leftClosed), itsStart(start), itsEnd(), itsRightClosed(False)

TaQLRangeNodeRep (const TaQLNode& end, Bool rightClosed) : TaQLNodeRep (TaQLNode_Range), itsLeftClosed(False), itsStart(), itsEnd(end), itsRightClosed(rightClosed)

virtual ~TaQLRangeNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLRangeNodeRep* restore (AipsIO& aio)


class TaQLIndexNodeRep: public TaQLNodeRep

Interface

TaQLIndexNodeRep (const TaQLNode& start, const TaQLNode& end, const TaQLNode& incr) : TaQLNodeRep (TaQLNode_Index), itsStart(start), itsEnd(end), itsIncr(incr)
virtual ~TaQLIndexNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLIndexNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the optional start, end, and incr values of an index in an array.

Member Description

TaQLIndexNodeRep (const TaQLNode& start, const TaQLNode& end, const TaQLNode& incr) : TaQLNodeRep (TaQLNode_Index), itsStart(start), itsEnd(end), itsIncr(incr)

virtual ~TaQLIndexNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLIndexNodeRep* restore (AipsIO& aio)


class TaQLJoinNodeRep: public TaQLNodeRep

Interface

TaQLJoinNodeRep (const TaQLMultiNode& tables, const TaQLNode& condition) : TaQLNodeRep (TaQLNode_Join), itsTables(tables), itsCondition(condition)
virtual ~TaQLJoinNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLJoinNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the expressions of a join operation. This is, however, a placeholder and not implemented yet.

Member Description

TaQLJoinNodeRep (const TaQLMultiNode& tables, const TaQLNode& condition) : TaQLNodeRep (TaQLNode_Join), itsTables(tables), itsCondition(condition)

virtual ~TaQLJoinNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLJoinNodeRep* restore (AipsIO& aio)


class TaQLKeyColNodeRep: public TaQLNodeRep

Interface

TaQLKeyColNodeRep (const String& name) : TaQLNodeRep (TaQLNode_KeyCol), itsName(name)
virtual ~TaQLKeyColNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLKeyColNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the name of a keyword or column. The name can contain . and :: delimiters for scoping.

Member Description

TaQLKeyColNodeRep (const String& name) : TaQLNodeRep (TaQLNode_KeyCol), itsName(name)

virtual ~TaQLKeyColNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLKeyColNodeRep* restore (AipsIO& aio)


class TaQLTableNodeRep: public TaQLNodeRep

Interface

TaQLTableNodeRep (const TaQLNode& table, const String& alias) : TaQLNodeRep (TaQLNode_Table), itsTable(table), itsAlias(alias)
virtual ~TaQLTableNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLTableNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the info defining a table. It can be a constant value holding a name or it can be a subquery. Furthermore the alias of the table is defined (which can be empty).

Member Description

TaQLTableNodeRep (const TaQLNode& table, const String& alias) : TaQLNodeRep (TaQLNode_Table), itsTable(table), itsAlias(alias)

virtual ~TaQLTableNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLTableNodeRep* restore (AipsIO& aio)


class TaQLColNodeRep: public TaQLNodeRep

Interface

TaQLColNodeRep (const TaQLNode& expr, const String& name, const String& dtype) : TaQLNodeRep (TaQLNode_Col), itsExpr(expr), itsName(name), itsDtype(checkDataType(dtype))
virtual ~TaQLColNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLColNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a column expression in the column list of the select clause. Currently only column names are supported, thus no real expressions. A new column name can be defined for the column (expression).

Member Description

TaQLColNodeRep (const TaQLNode& expr, const String& name, const String& dtype) : TaQLNodeRep (TaQLNode_Col), itsExpr(expr), itsName(name), itsDtype(checkDataType(dtype))

virtual ~TaQLColNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLColNodeRep* restore (AipsIO& aio)


class TaQLColumnsNodeRep: public TaQLNodeRep

Interface

TaQLColumnsNodeRep (Bool distinct, const TaQLMultiNode& nodes) : TaQLNodeRep (TaQLNode_Columns), itsDistinct(distinct), itsNodes(nodes)
virtual ~TaQLColumnsNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLColumnsNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a select column list. It also defines if the result must be distinct (unique)

Member Description

TaQLColumnsNodeRep (Bool distinct, const TaQLMultiNode& nodes) : TaQLNodeRep (TaQLNode_Columns), itsDistinct(distinct), itsNodes(nodes)

virtual ~TaQLColumnsNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLColumnsNodeRep* restore (AipsIO& aio)


class TaQLSortKeyNodeRep: public TaQLNodeRep

Types

enum Type

Ascending = 0
Descending = 1
None = 2

Interface

TaQLSortKeyNodeRep (Type type, const TaQLNode& child) : TaQLNodeRep (TaQLNode_SortKey), itsType(type), itsChild(child)
virtual ~TaQLSortKeyNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLSortKeyNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a sort key and the optional order in which this key must be sorted.

Member Description

enum Type

Do not change the values of this enum, as objects might be persistent.

TaQLSortKeyNodeRep (Type type, const TaQLNode& child) : TaQLNodeRep (TaQLNode_SortKey), itsType(type), itsChild(child)

virtual ~TaQLSortKeyNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLSortKeyNodeRep* restore (AipsIO& aio)


class TaQLSortNodeRep: public TaQLNodeRep

Types

enum Type

Ascending = 0
Descending = 1

Interface

TaQLSortNodeRep (Bool unique, Type type, const TaQLMultiNode& keys) : TaQLNodeRep (TaQLNode_Sort), itsUnique(unique), itsType(type), itsKeys(keys)
virtual ~TaQLSortNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLSortNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a sort list and the default order for each individual sort key.

Member Description

enum Type

Do not change the values of this enum, as objects might be persistent.

TaQLSortNodeRep (Bool unique, Type type, const TaQLMultiNode& keys) : TaQLNodeRep (TaQLNode_Sort), itsUnique(unique), itsType(type), itsKeys(keys)

virtual ~TaQLSortNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLSortNodeRep* restore (AipsIO& aio)


class TaQLLimitOffNodeRep: public TaQLNodeRep

Interface

TaQLLimitOffNodeRep (const TaQLNode& limit, const TaQLNode& offset) : TaQLNodeRep (TaQLNode_LimitOff), itsLimit(limit), itsOffset(offset)
virtual ~TaQLLimitOffNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLLimitOffNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the optional expressions for the LIMIT and OFFSET clause.

Member Description

TaQLLimitOffNodeRep (const TaQLNode& limit, const TaQLNode& offset) : TaQLNodeRep (TaQLNode_LimitOff), itsLimit(limit), itsOffset(offset)

virtual ~TaQLLimitOffNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLLimitOffNodeRep* restore (AipsIO& aio)


class TaQLGivingNodeRep: public TaQLNodeRep

Interface

explicit TaQLGivingNodeRep (const String& name, const String& type)
explicit TaQLGivingNodeRep (const TaQLMultiNode& exprlist) : TaQLNodeRep (TaQLNode_Giving), itsType (-1), itsExprList (exprlist)
virtual ~TaQLGivingNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLGivingNodeRep* restore (AipsIO& aio)
TaQLGivingNodeRep (const String& name, Int type) : type (TaQLNode_Giving), itsName (name), itsType (type)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the values for a GIVING clause. The value can be a table name or a list of expressions.

Member Description

explicit TaQLGivingNodeRep (const String& name, const String& type)

explicit TaQLGivingNodeRep (const TaQLMultiNode& exprlist) : TaQLNodeRep (TaQLNode_Giving), itsType (-1), itsExprList (exprlist)

virtual ~TaQLGivingNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLGivingNodeRep* restore (AipsIO& aio)

TaQLGivingNodeRep (const String& name, Int type) : type (TaQLNode_Giving), itsName (name), itsType (type)

Constructor for restore.

class TaQLUpdExprNodeRep: public TaQLNodeRep

Interface

explicit TaQLUpdExprNodeRep (const String& name, const TaQLMultiNode& indices, const TaQLNode& expr) : TaQLNodeRep (TaQLNode_UpdExpr), itsName(name), itsIndices(indices), itsExpr(expr)
virtual ~TaQLUpdExprNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLUpdExprNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the values for an update expression. It defines the column name and the expression for the new value. Optionally an index can be defined in case the column contains array values for which only some values need to be updated.

Member Description

explicit TaQLUpdExprNodeRep (const String& name, const TaQLMultiNode& indices, const TaQLNode& expr) : TaQLNodeRep (TaQLNode_UpdExpr), itsName(name), itsIndices(indices), itsExpr(expr)

virtual ~TaQLUpdExprNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLUpdExprNodeRep* restore (AipsIO& aio)


class TaQLSelectNodeRep: public TaQLNodeRep

Interface

TaQLSelectNodeRep (const TaQLNode& columns, const TaQLMultiNode& tables, const TaQLNode& join, const TaQLNode& where, const TaQLNode& groupby, const TaQLNode& having, const TaQLNode& sort, const TaQLNode& limitoff, const TaQLNode& giving, Bool brackets=False, Bool noExecute=False, Bool fromExecute=False) : TaQLNodeRep (TaQLNode_Select), itsBrackets(brackets), itsNoExecute(noExecute), itsFromExecute(fromExecute), itsColumns(columns), itsTables(tables), itsJoin(join), itsWhere(where), itsGroupby(groupby), itsHaving(having), itsSort(sort), itsLimitOff(limitoff), itsGiving(giving)
virtual ~TaQLSelectNodeRep()
void setBrackets()
void setNoExecute()
void setFromExecute()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLSelectNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the different parts of a select expression. It also holds flags telling if and how the select command must be executed when the node is visited for TaQLNodeHandler.

Member Description

TaQLSelectNodeRep (const TaQLNode& columns, const TaQLMultiNode& tables, const TaQLNode& join, const TaQLNode& where, const TaQLNode& groupby, const TaQLNode& having, const TaQLNode& sort, const TaQLNode& limitoff, const TaQLNode& giving, Bool brackets=False, Bool noExecute=False, Bool fromExecute=False) : TaQLNodeRep (TaQLNode_Select), itsBrackets(brackets), itsNoExecute(noExecute), itsFromExecute(fromExecute), itsColumns(columns), itsTables(tables), itsJoin(join), itsWhere(where), itsGroupby(groupby), itsHaving(having), itsSort(sort), itsLimitOff(limitoff), itsGiving(giving)

virtual ~TaQLSelectNodeRep()

void setBrackets()

void setNoExecute()

void setFromExecute()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLSelectNodeRep* restore (AipsIO& aio)


class TaQLUpdateNodeRep: public TaQLNodeRep

Interface

TaQLUpdateNodeRep (const TaQLMultiNode& tables, const TaQLMultiNode& update, const TaQLMultiNode& from, const TaQLNode& where, const TaQLNode& sort, const TaQLNode& limitoff) : TaQLNodeRep (TaQLNode_Update), itsTables(tables), itsUpdate(update), itsFrom(from), itsWhere(where), itsSort(sort), itsLimitOff(limitoff)
virtual ~TaQLUpdateNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLUpdateNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the parts for an update command. The tables to be used can be defined in two parts: the main one in the UPDATE clause, possible other ones in the FROM command.

Member Description

TaQLUpdateNodeRep (const TaQLMultiNode& tables, const TaQLMultiNode& update, const TaQLMultiNode& from, const TaQLNode& where, const TaQLNode& sort, const TaQLNode& limitoff) : TaQLNodeRep (TaQLNode_Update), itsTables(tables), itsUpdate(update), itsFrom(from), itsWhere(where), itsSort(sort), itsLimitOff(limitoff)

virtual ~TaQLUpdateNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLUpdateNodeRep* restore (AipsIO& aio)


class TaQLInsertNodeRep: public TaQLNodeRep

Interface

TaQLInsertNodeRep (const TaQLMultiNode& tables, const TaQLMultiNode& columns, const columns& values) : TaQLNodeRep (TaQLNode_Insert), itsTables(tables), itsColumns(columns), itsValues(values)
virtual ~TaQLInsertNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLInsertNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the parts for an insert command. The values cvan be a list of expressions or a subquery.

Member Description

TaQLInsertNodeRep (const TaQLMultiNode& tables, const TaQLMultiNode& columns, const columns& values) : TaQLNodeRep (TaQLNode_Insert), itsTables(tables), itsColumns(columns), itsValues(values)

virtual ~TaQLInsertNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLInsertNodeRep* restore (AipsIO& aio)


class TaQLDeleteNodeRep: public TaQLNodeRep

Interface

TaQLDeleteNodeRep (const TaQLMultiNode& tables, const TaQLNode& where, const TaQLNode& sort, const TaQLNode& limitoff) : TaQLNodeRep (TaQLNode_Delete), itsTables(tables), itsWhere(where), itsSort(sort), itsLimitOff(limitoff)
virtual ~TaQLDeleteNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLDeleteNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the parts for a delete command.

Member Description

TaQLDeleteNodeRep (const TaQLMultiNode& tables, const TaQLNode& where, const TaQLNode& sort, const TaQLNode& limitoff) : TaQLNodeRep (TaQLNode_Delete), itsTables(tables), itsWhere(where), itsSort(sort), itsLimitOff(limitoff)

virtual ~TaQLDeleteNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLDeleteNodeRep* restore (AipsIO& aio)


class TaQLCalcNodeRep: public TaQLNodeRep

Interface

TaQLCalcNodeRep (const TaQLMultiNode& tables, const TaQLNode& expr) : TaQLNodeRep (TaQLNode_Calc), itsTables(tables), itsExpr(expr)
virtual ~TaQLCalcNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLCalcNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the parts of the calc command.

Member Description

TaQLCalcNodeRep (const TaQLMultiNode& tables, const TaQLNode& expr) : TaQLNodeRep (TaQLNode_Calc), itsTables(tables), itsExpr(expr)

virtual ~TaQLCalcNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLCalcNodeRep* restore (AipsIO& aio)


class TaQLCreTabNodeRep: public TaQLNodeRep

Interface

TaQLCreTabNodeRep (const String& name, const TaQLMultiNode& cols, const TaQLMultiNode& dataMans) : cols (TaQLNode_CreTab), itsName(name), itsColumns(cols), itsDataMans(dataMans)
virtual ~TaQLCreTabNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLCreTabNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the parts of the create table command.

Member Description

TaQLCreTabNodeRep (const String& name, const TaQLMultiNode& cols, const TaQLMultiNode& dataMans) : cols (TaQLNode_CreTab), itsName(name), itsColumns(cols), itsDataMans(dataMans)

virtual ~TaQLCreTabNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLCreTabNodeRep* restore (AipsIO& aio)


class TaQLColSpecNodeRep: public TaQLNodeRep

Interface

TaQLColSpecNodeRep (const String& name, const String& dtype, const dtype& spec) : TaQLNodeRep (TaQLNode_ColSpec), itsName(name), itsDtype(checkDataType(dtype)), itsSpec(spec)
virtual ~TaQLColSpecNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLColSpecNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the parts of a column specification in the create table command.

Member Description

TaQLColSpecNodeRep (const String& name, const String& dtype, const dtype& spec) : TaQLNodeRep (TaQLNode_ColSpec), itsName(name), itsDtype(checkDataType(dtype)), itsSpec(spec)

virtual ~TaQLColSpecNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLColSpecNodeRep* restore (AipsIO& aio)


class TaQLRecFldNodeRep: public TaQLNodeRep

Interface

TaQLRecFldNodeRep (const String& name, const TaQLNode& values) : TaQLNodeRep (TaQLNode_RecFld), itsName(name), itsValues(values)
virtual ~TaQLRecFldNodeRep()
virtual TaQLNodeResult visit (TaQLNodeVisitor&) const
virtual void show (std::ostream& os) const
virtual void save (AipsIO& aio) const
static TaQLRecFldNodeRep* restore (AipsIO& aio)

Description

Review Status

Programs:
Tests:

Prerequisite

Synopsis

This class is a TaQLNodeRep holding the parts of a record field.

Member Description

TaQLRecFldNodeRep (const String& name, const TaQLNode& values) : TaQLNodeRep (TaQLNode_RecFld), itsName(name), itsValues(values)

virtual ~TaQLRecFldNodeRep()

virtual TaQLNodeResult visit (TaQLNodeVisitor&) const

virtual void show (std::ostream& os) const

virtual void save (AipsIO& aio) const

static TaQLRecFldNodeRep* restore (AipsIO& aio)