Accelerated Computation Engine
|
#include <ace_analytic_merge.h>
Public Member Functions | |
virtual bool | isFinished () const override final |
Merge (quint16 type, int size) | |
![]() | |
quint16 | analyticType () const |
int | size () const |
EAbstractAnalytic::Input::Type | type (int index) const |
QVariant | data (int index, EAbstractAnalytic::Input::Role role) const |
QList< QString > | commandLineArguments () const |
void | set (int index, const QVariant &value) |
![]() | |
virtual void | saveResult (std::unique_ptr< EAbstractAnalytic::Block > &&result) |
AbstractInput ()=default | |
~AbstractInput () | |
Protected Slots | |
virtual void | start () override final |
void | process () |
![]() | |
virtual void | start () |
Protected Member Functions | |
virtual int | index () const override final |
virtual void | writeResult (std::unique_ptr< EAbstractAnalytic::Block > &&result) override final |
![]() | |
virtual QFile * | addOutputFile (const QString &path) |
virtual Ace::DataObject * | addOutputData (const QString &path, quint16 type, const EMetadata &system) |
AbstractManager (quint16 type) | |
std::unique_ptr< EAbstractAnalytic::Block > | makeWork (int index) |
void | writeResult (std::unique_ptr< EAbstractAnalytic::Block > &&result, int expectedIndex) |
EAbstractAnalytic * | analytic () |
const EAbstractAnalytic * | analytic () const |
Additional Inherited Members | |
![]() | |
void | initialize () |
void | terminationRequested () |
void | finish () |
![]() | |
void | progressed (int percentComplete) |
void | done () |
void | finished () |
![]() | |
static std::unique_ptr< Ace::Analytic::AbstractManager > | makeManager (quint16 type, int index, int size) |
This is the merge manager. This manager is used to take all the chunk files produced by all the chunk run processes and merge them together finishing the execution of the underlying analytic by having it process all result blocks stored in the temporary binary chunk files.
|
explicit |
Constructs a new merge manager with the given analytic type and the given chunk size.
type | The analytic type that is used by this manager. |
size | The chunk size of the chunk runs this manager will merge to finish the analytic. |
|
finaloverrideprotectedvirtual |
Implements the interface that returns the next expected result block index to maintain order of result blocks.
Reimplemented from Ace::Analytic::AbstractInput.
|
finaloverridevirtual |
Implements the interface that tests if this abstract input is finished and received all result blocks for its analytic.
Implements Ace::Analytic::AbstractInput.
|
protectedslot |
Called to process all temporary chunk files, merging them all together by sorting all result blocks and processing them with this manager's analytic.
|
finaloverrideprotectedvirtualslot |
Implements the interface that is called once to begin the analytic run for this manager after all argument input has been set.
|
finaloverrideprotectedvirtual |
Implements the interface that is called to save the given result block to the underlying analytic and it can be assumed that the index order is maintained from least to greatest.
result | The result block that is processed by this manager's abstract analytic. |
Reimplemented from Ace::Analytic::AbstractInput.