bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
#include <ArrayAggregateOnOuterDimension.h>
Public Member Functions | |
ArrayAggregateOnOuterDimension (const ArrayAggregateOnOuterDimension &proto) | |
ArrayAggregateOnOuterDimension (const libdap::Array &proto, AMDList memberDatasets, std::unique_ptr< ArrayGetterInterface > arrayGetter, const Dimension &newDim) | |
const AMDList & | getDatasetList () const |
ArrayAggregateOnOuterDimension & | operator= (const ArrayAggregateOnOuterDimension &rhs) |
ArrayAggregateOnOuterDimension * | ptr_duplicate () override |
bool | read () override |
bool | serialize (libdap::ConstraintEvaluator &eval, libdap::DDS &dds, libdap::Marshaller &m, bool ce_eval) override |
~ArrayAggregateOnOuterDimension () override | |
Protected Member Functions | |
const ArrayGetterInterface & | getArrayGetterInterface () const |
libdap::Array & | getGranuleTemplateArray () |
void | printConstraints (const Array &fromArray) |
void | readConstrainedGranuleArraysAndAggregateDataHook () override |
void | transferOutputConstraintsIntoGranuleTemplateHook () override |
class ArrayAggregateOnOuterDimension
Array variable which contains information for performing a joinNew (new outer dimension) aggregation of an Array variable using samples of this variable in a specified list of member datasets.
The list is specified as a list of RCPtr<AggMemberDataset>, i.e. reference-counted AggMemberDataset's (AMD). The AMD is in charge of lazy-loading it's contained DataDDS as needed as well as for only loading the required data for a read() call. In other words, read() on this subclass will respect the constraints given to the superclass Array.
Definition at line 77 of file ArrayAggregateOnOuterDimension.h.
agg_util::ArrayAggregateOnOuterDimension::ArrayAggregateOnOuterDimension | ( | const libdap::Array & | proto, |
AMDList | memberDatasets, | ||
std::unique_ptr< ArrayGetterInterface > | arrayGetter, | ||
const Dimension & | newDim ) |
Construct a joinNew Array aggregation given the parameters.
proto | the Array to use as a prototype for the UNaggregated Array (ie module the new dimension). It is the object for the aggVar as loaded from memberDatasets[0]. |
memberDatasets | list of the member datasets forming the aggregation. this list will be copied internally so memberDatasets may be destroyed after this call (though the element AggMemberDataset objects will be ref()'d in our copy). |
arrayGetter | smart ptr to the algorithm for getting out the constrained array from each individual AMDList DataDDS. Ownership transferred to this (clearly). |
newDim | the new outer dimension this instance will add to the proto Array template |
agg_util::ArrayAggregateOnOuterDimension::ArrayAggregateOnOuterDimension | ( | const ArrayAggregateOnOuterDimension & | proto | ) |
Construct from a copy
Definition at line 60 of file ArrayAggregateOnOuterDimension.cc.
|
override |
Destroy any local memory
Definition at line 67 of file ArrayAggregateOnOuterDimension.cc.
|
protectedinherited |
Accessor for subclasses Note this is protected, so not const! Subclasses may mutate the return hence this, but should not delete it, hence the reference.
Definition at line 168 of file ArrayAggregationBase.cc.
|
inherited |
Get the list of AggMemberDataset's that comprise this aggregation
Definition at line 146 of file ArrayAggregationBase.cc.
|
protectedinherited |
Accessor for subclasses Note this is protected, so not const! Subclasses may mutate the return hence this, but should not delete it, hence the reference.
Definition at line 161 of file ArrayAggregationBase.cc.
ArrayAggregateOnOuterDimension & agg_util::ArrayAggregateOnOuterDimension::operator= | ( | const ArrayAggregateOnOuterDimension & | rhs | ) |
Assign this from rhs object.
rhs | the object to copy from |
Definition at line 80 of file ArrayAggregateOnOuterDimension.cc.
|
protectedinherited |
Print out the constraints on fromArray to the debug channel
Definition at line 153 of file ArrayAggregationBase.cc.
|
override |
Virtual Constructor: Make a deep copy (clone) of the object and return it.
Definition at line 74 of file ArrayAggregateOnOuterDimension.cc.
|
overrideinherited |
Base implementation that works for both joinNew and joinExisting. Sets ups constraints and things and then calls the subclass helper readAndAggregateGranules() for the specialized subclass behaviors.
Can | throw BESError, minimally |
Definition at line 101 of file ArrayAggregationBase.cc.
|
overrideprotectedvirtual |
Actually go through the constraints and stream the correctly constrained data into the superclass's output buffer for serializing out.
Reimplemented from agg_util::ArrayAggregationBase.
Definition at line 243 of file ArrayAggregateOnOuterDimension.cc.
|
override |
Specialization that implements a simple pipelining scheme. If an aggregation is made up from many 'slices' of different arrays, each will be read individually. This version sends each part as soon as it is read instead of building the entire response in memory and then sending it.
If this method is called and the variable has read_p set to true, then libdap::Array::serialize() will be called.
eval | |
dds | |
m | |
ce_eval |
Definition at line 114 of file ArrayAggregateOnOuterDimension.cc.
|
overrideprotectedvirtual |
Subclass hook for read() to copy granule constraints properly (inner dim ones).
Reimplemented from agg_util::ArrayAggregationBase.
Definition at line 226 of file ArrayAggregateOnOuterDimension.cc.