casacore
|
Class collecting the arrays in a group. More...
#include <ExprGroup.h>
Public Member Functions | |
TableExprGroupAggr (TableExprNodeRep *node) | |
virtual | ~TableExprGroupAggr () |
virtual Bool | isLazy () const |
Does the aggregate function use lazy semantics? The default implementation returns False. More... | |
virtual void | apply (const TableExprId &id) |
Get the operand's value for the given row and apply it to the aggregation. More... | |
virtual Array< Bool > | getArrayBool (const vector< TableExprId > &) |
virtual Array< Int64 > | getArrayInt (const vector< TableExprId > &) |
virtual Array< Double > | getArrayDouble (const vector< TableExprId > &) |
virtual Array< DComplex > | getArrayDComplex (const vector< TableExprId > &) |
virtual Array< MVTime > | getArrayDate (const vector< TableExprId > &) |
virtual Array< String > | getArrayString (const vector< TableExprId > &) |
![]() | |
TableExprGroupFuncBase (TableExprNodeRep *node) | |
Construct from the TaQL aggregation node. More... | |
virtual | ~TableExprGroupFuncBase () |
uInt | seqnr () const |
Get the function's sequence nr. More... | |
void | setSeqnr (uInt seqnr) |
Set the function's sequence nr. More... | |
virtual void | finish () |
If needed, finish the aggregation. More... | |
virtual CountedPtr< vector< TableExprId > > | getIds () const |
Get the assembled TableExprIds of a group. More... | |
virtual Bool | getBool (const vector< TableExprId > &=vector< TableExprId >()) |
Get the aggregated value. More... | |
virtual Int64 | getInt (const vector< TableExprId > &=vector< TableExprId >()) |
virtual Double | getDouble (const vector< TableExprId > &=vector< TableExprId >()) |
virtual DComplex | getDComplex (const vector< TableExprId > &=vector< TableExprId >()) |
virtual MVTime | getDate (const vector< TableExprId > &=vector< TableExprId >()) |
virtual String | getString (const vector< TableExprId > &=vector< TableExprId >()) |
Protected Member Functions | |
template<typename T > | |
Array< T > | getArray (const vector< TableExprId > &ids) |
Additional Inherited Members | |
![]() | |
TableExprNodeRep * | itsNode |
TableExprNodeRep * | itsOperand |
uInt | itsSeqnr |
Class collecting the arrays in a group.
Internal
This class collects the non-empty arrays in a group into an array with one more axis. All arrays (if not empty) must have the same shape.
Definition at line 378 of file ExprGroup.h.
|
explicit |
|
virtual |
|
virtual |
Get the operand's value for the given row and apply it to the aggregation.
This function should not be called for lazy classes.
Implements casacore::TableExprGroupFuncBase.
|
inlineprotected |
Return scalar values as a Vector.
Array values are returned as an array with one more axis. Get the first value to determine the shape.
Definition at line 393 of file ExprGroup.h.
References casacore::IPosition::append(), casacore::ArrayIterator< T >::array(), casacore::ArrayBase::ndim(), casacore::ArrayBase::shape(), and casacore::TableExprNodeRep::VTScalar.
|
virtual |
Reimplemented from casacore::TableExprGroupFuncBase.
|
virtual |
Reimplemented from casacore::TableExprGroupFuncBase.
|
virtual |
Reimplemented from casacore::TableExprGroupFuncBase.
|
virtual |
Reimplemented from casacore::TableExprGroupFuncBase.
|
virtual |
Reimplemented from casacore::TableExprGroupFuncBase.
|
virtual |
Reimplemented from casacore::TableExprGroupFuncBase.
|
virtual |
Does the aggregate function use lazy semantics? The default implementation returns False.
Reimplemented from casacore::TableExprGroupFuncBase.