CUBRID Engine  latest
stream_to_xasl.h
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 #ifndef _STREAM_TO_XASL_H_
20 #define _STREAM_TO_XASL_H_
21 
22 #if !defined (SERVER_MODE) && !defined (SA_MODE)
23 #error Belongs only to server or stand-alone modules.
24 #endif /* !defined (SERVER_MODE) && !defined (SA_MODE) */
25 
26 #include "thread_compat.hpp"
27 
28 // forward definitions
29 struct func_pred;
31 struct xasl_node;
32 struct xasl_node_header;
33 struct xasl_unpack_info;
34 
35 extern int stx_map_stream_to_xasl (THREAD_ENTRY * thread_p, xasl_node ** xasl_tree, bool use_xasl_clone,
36  char *xasl_stream, int xasl_stream_size, xasl_unpack_info ** xasl_unpack_info_ptr);
37 extern int stx_map_stream_to_filter_pred (THREAD_ENTRY * thread_p, pred_expr_with_context ** pred_expr_tree,
38  char *pred_stream, int pred_stream_size);
39 extern int stx_map_stream_to_func_pred (THREAD_ENTRY * thread_p, func_pred ** xasl, char *xasl_stream,
40  int xasl_stream_size, xasl_unpack_info ** xasl_unpack_info_ptr);
41 extern int stx_map_stream_to_xasl_node_header (THREAD_ENTRY * thread_p, xasl_node_header * xasl_header_p,
42  char *xasl_stream);
43 
44 #endif /* _STREAM_TO_XASL_H_ */
int stx_map_stream_to_filter_pred(THREAD_ENTRY *thread_p, pred_expr_with_context **pred_expr_tree, char *pred_stream, int pred_stream_size)
void THREAD_ENTRY
int stx_map_stream_to_xasl_node_header(THREAD_ENTRY *thread_p, xasl_node_header *xasl_header_p, char *xasl_stream)
int stx_map_stream_to_xasl(THREAD_ENTRY *thread_p, xasl_node **xasl_tree, bool use_xasl_clone, char *xasl_stream, int xasl_stream_size, xasl_unpack_info **xasl_unpack_info_ptr)
int stx_map_stream_to_func_pred(THREAD_ENTRY *thread_p, func_pred **xasl, char *xasl_stream, int xasl_stream_size, xasl_unpack_info **xasl_unpack_info_ptr)