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 MArray< Bool > | getArrayBool (const vector< TableExprId > &) |
virtual MArray< Int64 > | getArrayInt (const vector< TableExprId > &) |
virtual MArray< Double > | getArrayDouble (const vector< TableExprId > &) |
virtual MArray< DComplex > | getArrayDComplex (const vector< TableExprId > &) |
virtual MArray< MVTime > | getArrayDate (const vector< TableExprId > &) |
virtual MArray< String > | getArrayString (const vector< TableExprId > &) |
Public Member Functions inherited from casacore::TableExprGroupFuncBase | |
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 > | |
MArray< T > | getArray (const vector< TableExprId > &ids) |
Additional Inherited Members | |
Protected Attributes inherited from casacore::TableExprGroupFuncBase | |
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. Use the first non-null value to determine the shape and if masked.
All arrays are null.
Definition at line 393 of file ExprGroup.h.
References casacore::IPosition::append(), casacore::ArrayIterator< T, Alloc >::array(), casacore::MArray< T >::array(), casacore::False, casacore::TableExprNodeRep::get(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), casacore::TableExprGroupFuncBase::itsOperand, casacore::MArrayBase::mask(), casacore::mask(), casacore::MArrayBase::ndim(), casacore::ArrayIterator< T, Alloc >::next(), casacore::Array< T, Alloc >::resize(), casacore::MArrayBase::shape(), casacore::IPosition::size(), casacore::True, casacore::TableExprNodeRep::valueType(), 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.