2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: btr_proto.h
|
2003-11-07 09:06:35 +01:00
|
|
|
* DESCRIPTION: Prototype header file for btr.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2004-03-28 11:10:30 +02:00
|
|
|
#ifndef JRD_BTR_PROTO_H
|
|
|
|
#define JRD_BTR_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#include "../jrd/btr.h"
|
|
|
|
#include "../jrd/ods.h"
|
|
|
|
#include "../jrd/req.h"
|
2004-04-01 18:32:54 +02:00
|
|
|
#include "../jrd/exe.h"
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-03-28 11:10:30 +02:00
|
|
|
struct btree_exp;
|
|
|
|
struct exp_index_buf;
|
|
|
|
|
2008-04-02 15:55:10 +02:00
|
|
|
USHORT BTR_all(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::IndexDescAlloc**, Jrd::RelationPages*);
|
2006-05-17 21:15:41 +02:00
|
|
|
void BTR_complement_key(Jrd::temporary_key*);
|
2004-03-28 11:10:30 +02:00
|
|
|
void BTR_create(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::index_desc*, USHORT, Jrd::sort_context*, Jrd::SelectivityList&);
|
2007-08-28 22:17:36 +02:00
|
|
|
bool BTR_delete_index(Jrd::thread_db*, Jrd::win*, USHORT);
|
2004-03-20 15:57:40 +01:00
|
|
|
//USHORT BTR_delete_node(Jrd::thread_db*, Ods::btree_page*, USHORT);
|
2004-08-19 20:41:19 +02:00
|
|
|
bool BTR_description(Jrd::thread_db*, Jrd::jrd_rel*, Ods::index_root_page*, Jrd::index_desc*, SSHORT);
|
2005-11-28 22:43:06 +01:00
|
|
|
DSC* BTR_eval_expression(Jrd::thread_db*, Jrd::index_desc*, Jrd::Record*, bool&);
|
2006-12-27 22:01:02 +01:00
|
|
|
void BTR_evaluate(Jrd::thread_db*, Jrd::IndexRetrieval*, Jrd::RecordBitmap**, Jrd::RecordBitmap*);
|
2004-03-28 11:10:30 +02:00
|
|
|
UCHAR* BTR_find_leaf(Ods::btree_page*, Jrd::temporary_key*, UCHAR*, USHORT*, bool, bool);
|
|
|
|
Ods::btree_page* BTR_find_page(Jrd::thread_db*, Jrd::IndexRetrieval*, Jrd::win*, Jrd::index_desc*,
|
|
|
|
Jrd::temporary_key*, Jrd::temporary_key*, bool);
|
|
|
|
void BTR_insert(Jrd::thread_db*, Jrd::win*, Jrd::index_insertion*);
|
|
|
|
Jrd::idx_e BTR_key(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::Record*, Jrd::index_desc*, Jrd::temporary_key*,
|
2005-05-28 00:45:31 +02:00
|
|
|
Jrd::idx_null_state*, bool);
|
2005-05-07 21:45:57 +02:00
|
|
|
USHORT BTR_key_length(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::index_desc*);
|
2004-03-28 11:10:30 +02:00
|
|
|
UCHAR* BTR_last_node(Ods::btree_page*, exp_index_buf*, btree_exp**);
|
2004-03-20 15:57:40 +01:00
|
|
|
Ods::btree_page* BTR_left_handoff(Jrd::thread_db*, Jrd::win*, Ods::btree_page*, SSHORT);
|
2006-05-22 00:07:35 +02:00
|
|
|
USHORT BTR_lookup(Jrd::thread_db*, Jrd::jrd_rel*, USHORT, Jrd::index_desc*, Jrd::RelationPages*);
|
2005-09-30 10:48:17 +02:00
|
|
|
Jrd::idx_e BTR_make_key(Jrd::thread_db*, USHORT, Jrd::jrd_nod**, Jrd::index_desc*, Jrd::temporary_key*, bool);
|
2005-05-03 17:45:23 +02:00
|
|
|
void BTR_make_null_key(Jrd::thread_db*, Jrd::index_desc*, Jrd::temporary_key*);
|
2004-03-28 11:10:30 +02:00
|
|
|
bool BTR_next_index(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::jrd_tra*, Jrd::index_desc*, Jrd::win*);
|
|
|
|
void BTR_remove(Jrd::thread_db*, Jrd::win*, Jrd::index_insertion*);
|
|
|
|
void BTR_reserve_slot(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::jrd_tra*, Jrd::index_desc*);
|
2006-05-22 00:07:35 +02:00
|
|
|
void BTR_selectivity(Jrd::thread_db*, Jrd::jrd_rel*, USHORT, Jrd::SelectivityList&);
|
2006-05-17 21:15:41 +02:00
|
|
|
bool BTR_types_comparable(const dsc& target, const dsc& source);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-10-03 03:34:14 +02:00
|
|
|
#endif // JRD_BTR_PROTO_H
|
2004-02-02 12:02:12 +01:00
|
|
|
|