All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | List of all members
Akumuli::QP::Limiter Struct Reference
Inheritance diagram for Akumuli::QP::Limiter:

Public Member Functions

 Limiter (uint64_t limit, uint64_t offset, std::shared_ptr< Node > next)
virtual void complete ()
 Complete adding values.
virtual bool put (const aku_Sample &sample)
virtual void set_error (aku_Status status)
virtual int get_requirements () const

Public Attributes

uint64_t limit_
uint64_t offset_
uint64_t counter_
std::shared_ptr< Nodenext_

Additional Inherited Members

- Public Types inherited from Akumuli::QP::Node
enum  QueryFlags { EMPTY = 0, GROUP_BY_REQUIRED = 1, TERMINAL = 2 }

Member Function Documentation

int Akumuli::QP::Limiter::get_requirements ( ) const

This method returns set of flags that describes its functioning.

Implements Akumuli::QP::Node.

bool Akumuli::QP::Limiter::put ( const aku_Sample &  sample)

Process value, return false to interrupt process. Empty sample can be sent to flush all updates.

Implements Akumuli::QP::Node.

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