CUBRID Engine  latest
query_analytic.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 //
20 // query_analytic - interface for analytic query execution
21 //
22 
23 #ifndef _QUERY_ANALYTIC_HPP_
24 #define _QUERY_ANALYTIC_HPP_
25 
26 #if !defined (SERVER_MODE) && !defined (SA_MODE)
27 #error Wrong module
28 #endif // not server and not SA
29 
30 #include "system.h" // QUERY_ID
31 
32 // forward definitions
33 struct val_descr;
34 
35 namespace cubthread
36 {
37  class entry;
38 }
39 
40 namespace cubxasl
41 {
42  struct analytic_list_node;
43 } // namespace cubxasl
44 
45 int qdata_initialize_analytic_func (cubthread::entry *thread_p, cubxasl::analytic_list_node *func_p, QUERY_ID query_id);
47 int qdata_finalize_analytic_func (cubthread::entry *thread_p, cubxasl::analytic_list_node *func_p, bool is_same_group);
48 
49 #endif // _QUERY_ANALYTIC_HPP_
int qdata_evaluate_analytic_func(cubthread::entry *thread_p, cubxasl::analytic_list_node *func_p, val_descr *vd)
int qdata_finalize_analytic_func(cubthread::entry *thread_p, cubxasl::analytic_list_node *func_p, bool is_same_group)
int qdata_initialize_analytic_func(cubthread::entry *thread_p, cubxasl::analytic_list_node *func_p, QUERY_ID query_id)