CUBRID Engine  latest
filter_pred_cache.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 /*
20  * Filter predicate cache.
21  */
22 
23 #ifndef _FILTER_PRED_CACHE_H_
24 #define _FILTER_PRED_CACHE_H_
25 
26 #ident "$Id$"
27 
28 #include "storage_common.h"
29 #include "thread_compat.hpp"
30 
31 #include <cstdio>
32 
33 // forward definitions
34 struct or_predicate;
36 
37 extern int fpcache_initialize (THREAD_ENTRY * thread_p);
38 extern void fpcache_finalize (THREAD_ENTRY * thread_p);
39 extern int fpcache_claim (THREAD_ENTRY * thread_p, BTID * btid, or_predicate * or_pred,
40  pred_expr_with_context ** pred_expr);
41 extern int fpcache_retire (THREAD_ENTRY * thread_p, OID * class_oid, BTID * btid, pred_expr_with_context * filter_pred);
42 extern void fpcache_remove_by_class (THREAD_ENTRY * thread_p, const OID * class_oid);
43 extern void fpcache_drop_all (THREAD_ENTRY * thread_p);
44 extern void fpcache_dump (THREAD_ENTRY * thread_p, FILE * fp);
45 
46 #endif /* _XASL_CACHE_H_ */
void fpcache_remove_by_class(THREAD_ENTRY *thread_p, const OID *class_oid)
void fpcache_finalize(THREAD_ENTRY *thread_p)
int fpcache_claim(THREAD_ENTRY *thread_p, BTID *btid, or_predicate *or_pred, pred_expr_with_context **pred_expr)
void THREAD_ENTRY
void fpcache_dump(THREAD_ENTRY *thread_p, FILE *fp)
void fpcache_drop_all(THREAD_ENTRY *thread_p)
int fpcache_retire(THREAD_ENTRY *thread_p, OID *class_oid, BTID *btid, pred_expr_with_context *filter_pred)
int fpcache_initialize(THREAD_ENTRY *thread_p)