Class representing an array UDF in select expression. More...
#include <ExprUDFNodeArray.h>
Public Member Functions | |
TableExprUDFNodeArray (UDFBase *udf, const Table &, const TableExprNodeSet &source) | |
Constructor. | |
virtual | ~TableExprUDFNodeArray () |
Destructor. | |
virtual void | getAggrNodes (vector< TableExprNodeRep * > &aggr) |
Get the nodes representing an aggregate function. | |
virtual void | getColumnNodes (vector< TableExprNodeRep * > &cols) |
Get the nodes representing a table column. | |
virtual void | disableApplySelection () |
Do not apply the selection. | |
virtual void | applySelection (const Vector< uInt > &rownrs) |
If needed, let the UDF re-create column objects for a selection of rows. | |
CountedPtr < TableExprGroupFuncBase > | makeGroupAggrFunc () |
UDFs do not need a TableExprGroupFuncBase, so null is returned. | |
virtual MArray< Bool > | getArrayBool (const TableExprId &id) |
Functions to get the desired result of a function. | |
virtual MArray< Int64 > | getArrayInt (const TableExprId &id) |
virtual MArray< Double > | getArrayDouble (const TableExprId &id) |
The default implementation of getArrayDouble does getArrayInt and converts the result. | |
virtual MArray< DComplex > | getArrayDComplex (const TableExprId &id) |
The default implementation of getArrayDComplex does getArrayDouble and converts the result. | |
virtual MArray< String > | getArrayString (const TableExprId &id) |
virtual MArray< MVTime > | getArrayDate (const TableExprId &id) |
Private Attributes | |
UDFBase * | itsUDF |
Class representing an array UDF in select expression.
Internal
This class represents a function in a table select tree. The rownumber
function is represented by class TableExprNodeRownr . The rowid
function is represented by class TableExprNodeRowid . The rand
function is represented by class TableExprNodeRandom .
When one wants to add a function to the table selection grammar, the following has to be done:
Definition at line 74 of file ExprUDFNodeArray.h.
casacore::TableExprUDFNodeArray::TableExprUDFNodeArray | ( | UDFBase * | udf, | |
const Table & | , | |||
const TableExprNodeSet & | source | |||
) |
Constructor.
virtual casacore::TableExprUDFNodeArray::~TableExprUDFNodeArray | ( | ) | [virtual] |
Destructor.
virtual void casacore::TableExprUDFNodeArray::applySelection | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
If needed, let the UDF re-create column objects for a selection of rows.
It calls the function recreateColumnObjects.
Reimplemented from casacore::TableExprNodeRep.
virtual void casacore::TableExprUDFNodeArray::disableApplySelection | ( | ) | [virtual] |
Do not apply the selection.
Reimplemented from casacore::TableExprNodeRep.
virtual void casacore::TableExprUDFNodeArray::getAggrNodes | ( | vector< TableExprNodeRep * > & | aggr | ) | [virtual] |
Get the nodes representing an aggregate function.
Reimplemented from casacore::TableExprNodeBinary.
virtual MArray<Bool> casacore::TableExprUDFNodeArray::getArrayBool | ( | const TableExprId & | id | ) | [virtual] |
Functions to get the desired result of a function.
Reimplemented from casacore::TableExprNodeRep.
virtual MArray<MVTime> casacore::TableExprUDFNodeArray::getArrayDate | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casacore::TableExprNodeRep.
virtual MArray<DComplex> casacore::TableExprUDFNodeArray::getArrayDComplex | ( | const TableExprId & | id | ) | [virtual] |
The default implementation of getArrayDComplex does getArrayDouble and converts the result.
Reimplemented from casacore::TableExprNodeArray.
virtual MArray<Double> casacore::TableExprUDFNodeArray::getArrayDouble | ( | const TableExprId & | id | ) | [virtual] |
The default implementation of getArrayDouble does getArrayInt and converts the result.
Reimplemented from casacore::TableExprNodeArray.
virtual MArray<Int64> casacore::TableExprUDFNodeArray::getArrayInt | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casacore::TableExprNodeRep.
virtual MArray<String> casacore::TableExprUDFNodeArray::getArrayString | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casacore::TableExprNodeRep.
virtual void casacore::TableExprUDFNodeArray::getColumnNodes | ( | vector< TableExprNodeRep * > & | cols | ) | [virtual] |
Get the nodes representing a table column.
Reimplemented from casacore::TableExprNodeBinary.
CountedPtr<TableExprGroupFuncBase> casacore::TableExprUDFNodeArray::makeGroupAggrFunc | ( | ) | [virtual] |
UDFs do not need a TableExprGroupFuncBase, so null is returned.
Reimplemented from casacore::TableExprNodeRep.
UDFBase* casacore::TableExprUDFNodeArray::itsUDF [private] |
Definition at line 112 of file ExprUDFNodeArray.h.