2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: btr_proto.h
|
|
|
|
* DESCRIPTION: Prototype header file for btr.c
|
|
|
|
*
|
|
|
|
* 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): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _JRD_BTR_PROTO_H_
|
|
|
|
#define _JRD_BTR_PROTO_H_
|
|
|
|
|
|
|
|
#include "../jrd/btr.h"
|
|
|
|
#include "../jrd/ods.h"
|
|
|
|
#include "../jrd/req.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2002-11-21 00:18:16 +01:00
|
|
|
extern USHORT BTR_all(TDBB, struct jrd_rel *, struct idx **, struct idx **,
|
2001-05-23 15:26:42 +02:00
|
|
|
struct str **, SLONG *);
|
2002-11-21 00:18:16 +01:00
|
|
|
extern void BTR_create(TDBB, struct jrd_rel *, struct idx *, USHORT, struct scb *,
|
2001-05-23 15:26:42 +02:00
|
|
|
float *);
|
|
|
|
extern void BTR_delete_index(TDBB, struct win *, USHORT);
|
2003-09-18 01:24:03 +02:00
|
|
|
extern bool BTR_description(JRD_REL, struct irt *, struct idx *, SSHORT);
|
2001-05-23 15:26:42 +02:00
|
|
|
extern void BTR_evaluate(struct tdbb *, struct irb *, struct sbm **);
|
2003-09-18 01:24:03 +02:00
|
|
|
extern struct btn *BTR_find_leaf(struct btr *, struct key *, UCHAR *, USHORT *,
|
|
|
|
int, bool);
|
2001-05-23 15:26:42 +02:00
|
|
|
extern struct btr *BTR_find_page(struct tdbb *, struct irb *, struct win *,
|
2003-09-18 01:24:03 +02:00
|
|
|
struct idx *, struct key *, struct key *, bool);
|
2003-02-10 14:28:35 +01:00
|
|
|
extern void BTR_insert(struct tdbb *, struct win *, struct iib *);
|
2002-11-21 00:18:16 +01:00
|
|
|
extern enum idx_e BTR_key(struct tdbb *, struct jrd_rel *, struct rec *,
|
2003-03-09 22:07:29 +01:00
|
|
|
struct idx *, struct key *, idx_null_state *);
|
2002-11-21 00:18:16 +01:00
|
|
|
extern USHORT BTR_key_length(struct jrd_rel *, struct idx *);
|
2001-05-23 15:26:42 +02:00
|
|
|
extern struct btn *BTR_last_node(struct btr *, struct exp *, struct btx **);
|
|
|
|
extern struct btr *BTR_left_handoff(struct tdbb *, struct win *, struct btr *,
|
|
|
|
SSHORT);
|
2003-02-10 14:28:35 +01:00
|
|
|
extern USHORT BTR_lookup(TDBB, struct jrd_rel *, USHORT, struct idx *);
|
2002-11-21 00:18:16 +01:00
|
|
|
extern void BTR_make_key(struct tdbb *, USHORT, struct jrd_nod **, struct idx *,
|
2001-05-23 15:26:42 +02:00
|
|
|
struct key *, USHORT);
|
2003-09-18 01:24:03 +02:00
|
|
|
extern bool BTR_next_index(TDBB, struct jrd_rel *, struct jrd_tra *, struct idx *,
|
|
|
|
struct win *);
|
2001-05-23 15:26:42 +02:00
|
|
|
extern struct btn *BTR_next_node(struct btn *, struct btx **);
|
|
|
|
extern struct btn *BTR_previous_node(struct btn *, struct btx **);
|
2003-02-10 14:28:35 +01:00
|
|
|
extern void BTR_remove(struct tdbb *, struct win *, struct iib *);
|
2002-11-21 00:18:16 +01:00
|
|
|
extern void BTR_reserve_slot(TDBB, struct jrd_rel *, struct jrd_tra *, struct idx *);
|
|
|
|
extern float BTR_selectivity(TDBB, struct jrd_rel *, USHORT);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _JRD_BTR_PROTO_H_ */
|