CUBRID Engine  latest
overflow_file.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 /*
21  * overflow_file.h - Overflow file manager (at server)
22  */
23 
24 #ifndef _OVERFLOW_FILE_H_
25 #define _OVERFLOW_FILE_H_
26 
27 #ident "$Id$"
28 
29 #include "config.h"
30 #include "file_manager.h"
31 #include "mvcc.h"
32 #include "page_buffer.h"
33 #include "recovery.h"
34 #include "slotted_page.h"
35 #include "storage_common.h"
36 
37 extern int overflow_insert (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, VPID * ovf_vpid, RECDES * recdes,
38  FILE_TYPE file_type);
39 extern int overflow_update (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, const VPID * ovf_vpid, RECDES * recdes,
40  FILE_TYPE file_type);
41 extern const VPID *overflow_delete (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, const VPID * ovf_vpid);
42 extern void overflow_flush (THREAD_ENTRY * thread_p, const VPID * ovf_vpid);
43 extern int overflow_get_length (THREAD_ENTRY * thread_p, const VPID * ovf_vpid);
44 extern SCAN_CODE overflow_get (THREAD_ENTRY * thread_p, const VPID * ovf_vpid, RECDES * recdes,
46 extern SCAN_CODE overflow_get_nbytes (THREAD_ENTRY * thread_p, const VPID * ovf_vpid, RECDES * recdes, int start_offset,
47  int max_nbytes, int *remaining_length, MVCC_SNAPSHOT * mvcc_snapshot);
48 extern int overflow_get_capacity (THREAD_ENTRY * thread_p, const VPID * ovf_vpid, int *ovf_length, int *ovf_num_pages,
49  int *ovf_overhead, int *ovf_free_space);
50 #if defined (CUBRID_DEBUG)
51 extern int overflow_dump (THREAD_ENTRY * thread_p, FILE * fp, VPID * ovf_vpid);
52 #endif
53 extern int overflow_rv_newpage_insert_redo (THREAD_ENTRY * thread_p, LOG_RCV * rcv);
54 extern int overflow_rv_newpage_link_undo (THREAD_ENTRY * thread_p, LOG_RCV * rcv);
55 extern int overflow_rv_link (THREAD_ENTRY * thread_p, LOG_RCV * rcv);
56 extern void overflow_rv_link_dump (FILE * fp, int length_ignore, void *data);
57 extern int overflow_rv_page_update_redo (THREAD_ENTRY * thread_p, LOG_RCV * rcv);
58 extern void overflow_rv_page_dump (FILE * fp, int length, void *data);
59 extern char *overflow_get_first_page_data (char *page_ptr);
60 #endif /* _OVERFLOW_FILE_H_ */
void overflow_rv_link_dump(FILE *fp, int length_ignore, void *data)
int overflow_rv_newpage_link_undo(THREAD_ENTRY *thread_p, LOG_RCV *rcv)
SCAN_CODE
int overflow_rv_newpage_insert_redo(THREAD_ENTRY *thread_p, LOG_RCV *rcv)
const VPID * overflow_delete(THREAD_ENTRY *thread_p, const VFID *ovf_vfid, const VPID *ovf_vpid)
SCAN_CODE overflow_get(THREAD_ENTRY *thread_p, const VPID *ovf_vpid, RECDES *recdes, MVCC_SNAPSHOT *mvcc_snapshot)
FILE_TYPE
Definition: file_manager.h:38
char * overflow_get_first_page_data(char *page_ptr)
int overflow_insert(THREAD_ENTRY *thread_p, const VFID *ovf_vfid, VPID *ovf_vpid, RECDES *recdes, FILE_TYPE file_type)
Definition: overflow_file.c:95
void THREAD_ENTRY
int overflow_get_length(THREAD_ENTRY *thread_p, const VPID *ovf_vpid)
void overflow_flush(THREAD_ENTRY *thread_p, const VPID *ovf_vpid)
int overflow_update(THREAD_ENTRY *thread_p, const VFID *ovf_vfid, const VPID *ovf_vpid, RECDES *recdes, FILE_TYPE file_type)
int overflow_get_capacity(THREAD_ENTRY *thread_p, const VPID *ovf_vpid, int *ovf_length, int *ovf_num_pages, int *ovf_overhead, int *ovf_free_space)
int overflow_rv_page_update_redo(THREAD_ENTRY *thread_p, LOG_RCV *rcv)
int overflow_rv_link(THREAD_ENTRY *thread_p, LOG_RCV *rcv)
void overflow_rv_page_dump(FILE *fp, int length, void *data)
SCAN_CODE overflow_get_nbytes(THREAD_ENTRY *thread_p, const VPID *ovf_vpid, RECDES *recdes, int start_offset, int max_nbytes, int *remaining_length, MVCC_SNAPSHOT *mvcc_snapshot)