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
|
|
|
|
2022-02-09 07:35:31 +01:00
|
|
|
void BTR_all(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::IndexDescList&, Jrd::RelationPages*);
|
2006-05-17 21:15:41 +02:00
|
|
|
void BTR_complement_key(Jrd::temporary_key*);
|
2015-10-19 15:32:02 +02:00
|
|
|
void BTR_create(Jrd::thread_db*, Jrd::IndexCreation&, Jrd::SelectivityList&);
|
2007-08-28 22:17:36 +02:00
|
|
|
bool BTR_delete_index(Jrd::thread_db*, Jrd::win*, USHORT);
|
2009-06-21 08:04:18 +02:00
|
|
|
bool BTR_description(Jrd::thread_db*, Jrd::jrd_rel*, Ods::index_root_page*, Jrd::index_desc*, USHORT);
|
2022-04-12 10:34:21 +02:00
|
|
|
bool BTR_check_condition(Jrd::thread_db*, Jrd::index_desc*, Jrd::Record*);
|
2023-05-09 16:11:04 +02:00
|
|
|
dsc* BTR_eval_expression(Jrd::thread_db*, Jrd::index_desc*, Jrd::Record*);
|
2010-08-09 17:48:51 +02:00
|
|
|
void BTR_evaluate(Jrd::thread_db*, const Jrd::IndexRetrieval*, Jrd::RecordBitmap**, Jrd::RecordBitmap*);
|
2023-04-13 09:26:43 +02:00
|
|
|
UCHAR* BTR_find_leaf(Ods::btree_page*, Jrd::temporary_key*, UCHAR*, USHORT*, bool, int);
|
2010-08-09 17:48:51 +02:00
|
|
|
Ods::btree_page* BTR_find_page(Jrd::thread_db*, const Jrd::IndexRetrieval*, Jrd::win*, Jrd::index_desc*,
|
2023-09-04 08:13:10 +02:00
|
|
|
Jrd::temporary_key*, Jrd::temporary_key*);
|
2004-03-28 11:10:30 +02:00
|
|
|
void BTR_insert(Jrd::thread_db*, Jrd::win*, Jrd::index_insertion*);
|
2005-05-07 21:45:57 +02:00
|
|
|
USHORT BTR_key_length(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::index_desc*);
|
2004-03-20 15:57:40 +01:00
|
|
|
Ods::btree_page* BTR_left_handoff(Jrd::thread_db*, Jrd::win*, Ods::btree_page*, SSHORT);
|
2014-02-25 07:30:18 +01:00
|
|
|
bool BTR_lookup(Jrd::thread_db*, Jrd::jrd_rel*, USHORT, Jrd::index_desc*, Jrd::RelationPages*);
|
2023-09-05 22:14:16 +02:00
|
|
|
bool BTR_make_bounds(Jrd::thread_db*, const Jrd::IndexRetrieval*, Jrd::IndexScanListIterator*,
|
2023-09-04 08:13:10 +02:00
|
|
|
Jrd::temporary_key*, Jrd::temporary_key*);
|
2010-11-21 04:47:29 +01:00
|
|
|
Jrd::idx_e BTR_make_key(Jrd::thread_db*, USHORT, const Jrd::ValueExprNode* const*, const Jrd::index_desc*,
|
2023-09-04 08:13:10 +02:00
|
|
|
Jrd::temporary_key*, USHORT);
|
2013-05-06 14:34:20 +02:00
|
|
|
void BTR_make_null_key(Jrd::thread_db*, const 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*);
|
2015-10-19 15:32:02 +02:00
|
|
|
void BTR_reserve_slot(Jrd::thread_db*, Jrd::IndexCreation&);
|
2006-05-22 00:07:35 +02:00
|
|
|
void BTR_selectivity(Jrd::thread_db*, Jrd::jrd_rel*, USHORT, Jrd::SelectivityList&);
|
2011-02-21 12:18:29 +01: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
|