Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
sax.h
1 #pragma once
2 
3 #include <memory>
4 #include <unordered_map>
5 
6 #include "../queryprocessor_framework.h"
7 #include "../saxencoder.h"
8 
9 
10 namespace Akumuli {
11 namespace QP {
12 
13 // //
14 // SAX Encoder //
15 // //
16 
17 struct SAXNode : Node {
18 
19  std::shared_ptr<Node> next_;
20  std::unordered_map<aku_ParamId, SAX::SAXEncoder> encoders_;
21  int window_width_;
22  int alphabet_size_;
23  bool disable_value_;
24  bool inverse_;
25 
26  SAXNode(int alphabet_size, int window_width, bool disable_original_value,
27  std::shared_ptr<Node> next);
28 
29  SAXNode(boost::property_tree::ptree const& ptree, std::shared_ptr<Node> next);
30 
31  virtual void complete();
32 
33  virtual bool put(const aku_Sample& sample);
34 
35  virtual void set_error(aku_Status status);
36 
37  virtual int get_requirements() const;
38 };
39 }
40 } // namespace
virtual int get_requirements() const
Definition: sax.cpp:74
Definition: sax.h:17
virtual bool put(const aku_Sample &sample)
Definition: sax.cpp:42
Definition: queryprocessor_framework.h:28
virtual void complete()
Complete adding values.
Definition: sax.cpp:38