bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
#include <GridAggregateOnOuterDimension.h>
Public Member Functions | |
virtual const AMDList & | getDatasetList () const |
GridAggregateOnOuterDimension (const Grid &proto, const Dimension &newDim, const AMDList &memberDatasets, const DDSLoader &loaderProto) | |
GridAggregateOnOuterDimension (const GridAggregateOnOuterDimension &proto) | |
GridAggregateOnOuterDimension & | operator= (const GridAggregateOnOuterDimension &rhs) |
virtual GridAggregateOnOuterDimension * | ptr_duplicate () |
bool | read () override |
bool | serialize (libdap::ConstraintEvaluator &eval, libdap::DDS &dds, libdap::Marshaller &m, bool ce_eval) override |
void | setShapeFrom (const libdap::Grid &protoSubGrid, bool addMaps) |
void | transform_to_dap4 (libdap::D4Group *root, libdap::Constructor *container) override |
Protected Member Functions | |
void | copyProtoMapsIntoThisGrid (const Dimension &aggDim) |
virtual const Dimension & | getAggregationDimension () const |
Grid * | getSubGridTemplate () |
void | printConstraints (const libdap::Array &fromArray) |
virtual void | readAndAggregateConstrainedMapsHook () |
void | readProtoSubGrid () |
virtual void | transferConstraintsToSubGridHook (Grid *pSubGrid) |
class GridAggregateOnOuterDimension : public GridAggregationBase
Grid that performs a joinNew aggregation by taking an ordered list of datatsets which contain Grid's with matching signatures (ie array name, dimensions, maps) and creating a new outer dimension with cardinality the number of datasets in the aggregation.
The resulting aggregated grid will be one plus the rank of the array's of the member dataset Grids.
We assume we have created the proper shape of this Grid so that the map vectors in the Grid superclass are correct (as loaded from the first dataset!)
The data itself will be loaded as needed during serialize based on the response.
TODO OPTIMIZE One major issue is we create one of these objects per aggregation variable, even if these vars are in the same dataset. So when we read, we load the dataset for each variable! Does the BES cache them or something? Maybe we can avoid doing this with some smarts? Not sure... I get the feeling the other handlers do the same sort of thing, but can be smarter about seeking, etc.
Definition at line 80 of file GridAggregateOnOuterDimension.h.
agg_util::GridAggregateOnOuterDimension::GridAggregateOnOuterDimension | ( | const Grid & | proto, |
const Dimension & | newDim, | ||
const AMDList & | memberDatasets, | ||
const DDSLoader & | loaderProto ) |
Create the new Grid from the template proto... we'll have the same name, dimension and attributes.
proto | template to use, will be the aggVar from the FIRST member dataset! |
memberDatasets | descriptors for the dataset members of the aggregation. ASSUMED that the contained DDS will have a Grid var with name proto.name() that matches rank and maps, etc!! |
loaderProto | loaded template to use (borrow dhi from) to load the datasets |
Definition at line 65 of file GridAggregateOnOuterDimension.cc.
agg_util::GridAggregateOnOuterDimension::GridAggregateOnOuterDimension | ( | const GridAggregateOnOuterDimension & | proto | ) |
Definition at line 76 of file GridAggregateOnOuterDimension.cc.
|
virtual |
Definition at line 100 of file GridAggregateOnOuterDimension.cc.
|
protectedinherited |
Copy the template's read in subgrid maps into this. Skip any map found in the subgrid named aggDim.name since we handle the aggregation dimension map specially.
aggDim | a map with aggDim.name is NOT copied. |
Definition at line 387 of file GridAggregationBase.cc.
|
protectedvirtual |
Get the contained aggregation dimension info
Implements agg_util::GridAggregationBase.
Definition at line 153 of file GridAggregateOnOuterDimension.cc.
|
virtualinherited |
Accessor for the dataset description list that describes this aggregation.
Definition at line 163 of file GridAggregationBase.cc.
|
protectedinherited |
Reveals the raw ptr, but only to subclasses. Don't delete it, but can be changed etc.
Definition at line 321 of file GridAggregationBase.cc.
GridAggregateOnOuterDimension & agg_util::GridAggregateOnOuterDimension::operator= | ( | const GridAggregateOnOuterDimension & | rhs | ) |
Definition at line 90 of file GridAggregateOnOuterDimension.cc.
|
protectedinherited |
Definition at line 361 of file GridAggregationBase.cc.
|
virtual |
Definition at line 84 of file GridAggregateOnOuterDimension.cc.
|
overrideinherited |
Read in only those datasets that are in the constrained output making sure to apply the internal dimension constraints to the member datasets properly before reading them! Stream the data into the output buffer correctly.
NOTE: Subclasses should implement the protected hooks if possible rather than overriding this function!
Definition at line 169 of file GridAggregationBase.cc.
|
protectedvirtualinherited |
Called from read()! Invokes the user hooks eventually. Can be overridden, but default calls should suffice for now.
Definition at line 344 of file GridAggregationBase.cc.
|
protectedinherited |
Transfer constraints properly from this object's maps and read in the proto subgrid entirely (respecting constraints)
Definition at line 368 of file GridAggregationBase.cc.
|
overrideinherited |
Pipelining data reads and network writes. This version of serialize(), like the versions in ArrayAggregation... also here in the NCML module, handles interleaved data reads and network write operations.
eval | |
dds | |
m | |
ce_eval |
Definition at line 219 of file GridAggregationBase.cc.
|
inherited |
Use the data array and maps from protoSubGrid as the initial point for the shape of the Grid. It may still not be complete until the callers adds maps, etc.
protoSubGrid | describes the data array and map templates to use for the granules (modulo any agg subclass changes). |
addMaps | if true, add's all the maps in protoSubGrid into this. if false, does not. |
Definition at line 135 of file GridAggregationBase.cc.
|
protectedvirtual |
For the data array and all maps, transfer the constraints from the super grid (ie this) to all the grids in the given prototype subgrid.
Note that this Grid has one more outer dimension than the subgrid, so the first one on this will clearly be skipped.
pToGrid |
Reimplemented from agg_util::GridAggregationBase.
Definition at line 144 of file GridAggregateOnOuterDimension.cc.
|
overrideinherited |
Definition at line 94 of file GridAggregationBase.cc.