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