Added quantiling UDAFs
[com/gs-lite.git] / src / ftacmp / generate_lfta_code.h
1 /* ------------------------------------------------\r
2 Copyright 2014 AT&T Intellectual Property\r
3    Licensed under the Apache License, Version 2.0 (the "License");\r
4    you may not use this file except in compliance with the License.\r
5    You may obtain a copy of the License at\r
6 \r
7      http://www.apache.org/licenses/LICENSE-2.0\r
8 \r
9    Unless required by applicable law or agreed to in writing, software\r
10    distributed under the License is distributed on an "AS IS" BASIS,\r
11    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
12    See the License for the specific language governing permissions and\r
13    limitations under the License.\r
14  ------------------------------------------- */\r
15 #ifndef __GENERATE_FTA_CODE_H_DEFINED__\r
16 #define __GENERATE_FTA_CODE_H_DEFINED__\r
17 \r
18 #include <string>\r
19 #include <map>\r
20 #include "parse_fta.h"\r
21 #include "parse_schema.h"\r
22 #include "query_plan.h"\r
23 #include"nic_def.h"\r
24 \r
25 \r
26 std::string generate_lfta_block(qp_node *fs, table_list *schema, int gid,\r
27 //      std::map<std::string,std::string> &int_fcn_defs,\r
28         ext_fcn_list *Ext_fcns, std::string &schema_embed_str, ifq_t *ifdb, nic_property *nicp, set<unsigned int> &s_pids);\r
29 \r
30 std::string generate_lfta_prefilter(std::vector<cnf_set *> &pred_list, col_id_set &temp_cids, table_list *Schema, ext_fcn_list *Ext_fcns, std::vector<col_id_set> &lfta_cols, std::vector<long long int> &lfta_sigs, vector<int> &lfta_snap_lens, std::string iface);\r
31 std::string generate_lfta_prefilter_struct(col_id_set &temp_cids, table_list *Schema);\r
32 \r
33 int compute_snap_len(qp_node *fs, table_list *schema);\r
34 \r
35 \r
36 #endif\r
37 \r