casacore
|
#include <TableParseSortKey.h>
Public Member Functions | |
TableParseSortKey () | |
Construct from a given expression. | |
TableParseSortKey (const TableExprNode &) | |
Construct from a given expression. | |
TableParseSortKey (const TableExprNode &, Sort::Order) | |
Construct from a given expression and order. | |
const TableExprNode & | node () const |
Get the expression node. | |
Sort::Order | order () const |
Get the sort order. | |
Bool | orderGiven () const |
Is the order given? | |
std::shared_ptr< ArrayBase > | addSortValues (Sort &sort, Sort::Order mainOrder, const Vector< rownr_t > &) const |
Add the values of the sort key to the Sort object by reading the values of the expression into an array. | |
Private Member Functions | |
void | checkNode () const |
Check if the node results in a scalar and does not contain aggregate functions. | |
Private Attributes | |
TableExprNode | node_p |
Sort::Order | order_p |
Bool | given_p |
Helper class for sort keys in TableParse
Internal
An object of this class is used to hold the sort expression and sort order of a single sort key.
Definition at line 52 of file TableParseSortKey.h.
casacore::TableParseSortKey::TableParseSortKey | ( | ) |
Construct from a given expression.
The order is not given.
|
explicit |
Construct from a given expression.
The order is not given.
casacore::TableParseSortKey::TableParseSortKey | ( | const TableExprNode & | , |
Sort::Order | |||
) |
Construct from a given expression and order.
std::shared_ptr< ArrayBase > casacore::TableParseSortKey::addSortValues | ( | Sort & | sort, |
Sort::Order | mainOrder, | ||
const Vector< rownr_t > & | |||
) | const |
Add the values of the sort key to the Sort object by reading the values of the expression into an array.
The array has to be deletedlater after the full sort is done.
|
private |
Check if the node results in a scalar and does not contain aggregate functions.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 92 of file TableParseSortKey.h.
Referenced by orderGiven().
|
private |
Definition at line 90 of file TableParseSortKey.h.
Referenced by node().
|
private |
Definition at line 91 of file TableParseSortKey.h.
Referenced by order().