AERename Class Reference

A class that models the renaming of an attribute (column). More...

Inherits Simba::SQLEngine::AEUnaryValueExpr.

List of all members.

Public Member Functions

virtual void AcceptVisitor (AENodeVisitor &in_visitor)
 Calls the correct method on the visitor.
 AERename (const AERename &in_other)
 Copy constructor.
 AERename (SharedPtr< AEValueExpr > in_operand, const simba_wstring &in_name)
 Constructor.
virtual AERenameClone () const
 Creates a clone of this node object.
virtual simba_wstring GetLogString () const
 Returns a string name for this node for the purpose of logging.
virtual AENodeType GetNodeType () const
 Returns an integer that uniquely identifies the node class.
void SetName (const simba_wstring &in_name)
 Sets the name of the value expression as a column.
virtual ~AERename ()
 Destructor.

Detailed Description

A class that models the renaming of an attribute (column).

Other than changing the name of an attribute, no metadata about the column changes.

For example, the following query will have a AERename value expression for the first column. SELECT C1 AS COL1, C2 FROM T

Will always have one child (GetChildCount() returns 1):


Constructor & Destructor Documentation

AERename ( SharedPtr< AEValueExpr in_operand,
const simba_wstring in_name 
)

Constructor.

Parameters:
in_operand The operand.
in_name The name of the value expression as a column.
Exceptions:
SEInvalidArgumentException when in_operand does not own an operand object or in_name is an empty string
AERename ( const AERename in_other  ) 

Copy constructor.

To support "cloning". See Clone() method.

Parameters:
in_other The other node to create copy from.
virtual ~AERename (  )  [virtual]

Destructor.


Member Function Documentation

virtual void AcceptVisitor ( AENodeVisitor in_visitor  )  [virtual]

Calls the correct method on the visitor.

Parameters:
in_visitor The visiting object.

Implements AENode.

virtual AERename* Clone (  )  const [virtual]

Creates a clone of this node object.

Returns:
A clone of this node object. (OWN)

Implements AEUnaryValueExpr.

virtual simba_wstring GetLogString (  )  const [virtual]

Returns a string name for this node for the purpose of logging.

Returns:
A string representation of this node for logging purposes.

Implements AENode.

virtual AENodeType GetNodeType (  )  const [virtual]

Returns an integer that uniquely identifies the node class.

See the definition of AENodeType for values defined.

Returns:
The ID that uniquely identifies this type of nodes.

Implements AENode.

void SetName ( const simba_wstring in_name  ) 

Sets the name of the value expression as a column.

Parameters:
in_name The name of the value expression as a column.
Exceptions:
SEInvalidArgumentException when in_name is an empty string

Reimplemented from AEValueExpr.


The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:17 2017 for SimbaEngine 10.1.3.1011 by simba