All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | List of all members
Akumuli::QP::IQueryProcessor Struct Referenceabstract

Query processor interface. More...

#include <queryprocessor_framework.h>

Inheritance diagram for Akumuli::QP::IQueryProcessor:
Akumuli::QP::MetadataQueryProcessor Akumuli::QP::ScanQueryProcessor

Public Member Functions

virtual QueryRange range () const =0
virtual IQueryFilterfilter ()=0
 Return query filter.
virtual SeriesMatchermatcher ()=0
virtual bool start ()=0
virtual bool put (const aku_Sample &sample)=0
 Get new value.
virtual void stop ()=0
 Will be called when processing completed without errors.
virtual void set_error (aku_Status error)=0
 Will be called on error.

Detailed Description

Query processor interface.

Member Function Documentation

virtual SeriesMatcher* Akumuli::QP::IQueryProcessor::matcher ( )
pure virtual

Returns series matcher to override global one for query execution. If override is not needed - return nullptr.

Implemented in Akumuli::QP::MetadataQueryProcessor, and Akumuli::QP::ScanQueryProcessor.

virtual bool Akumuli::QP::IQueryProcessor::start ( )
pure virtual

Will be called before query execution starts. If result already obtained - return False. In this case stop method shouldn't be called at the end.

Implemented in Akumuli::QP::MetadataQueryProcessor, and Akumuli::QP::ScanQueryProcessor.

The documentation for this struct was generated from the following file: