2
* PROGRAM: JRD Access Method
4
* DESCRIPTION: Prototype header file for sort.cpp
6
* The contents of this file are subject to the Interbase Public
7
* License Version 1.0 (the "License"); you may not use this file
8
* except in compliance with the License. You may obtain a copy
9
* of the License at http://www.Inprise.com/IPL.html
11
* Software distributed under the License is distributed on an
12
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
13
* or implied. See the License for the specific language governing
14
* rights and limitations under the License.
16
* The Original Code was created by Inprise Corporation
17
* and its predecessors. Portions created by Inprise Corporation are
18
* Copyright (C) Inprise Corporation.
20
* All Rights Reserved.
21
* Contributor(s): ______________________________________.
24
#ifndef JRD_SORT_PROTO_H
25
#define JRD_SORT_PROTO_H
30
struct sort_work_file;
34
#ifdef SCROLLABLE_CURSORS
35
void SORT_diddle_key(UCHAR *, Jrd::sort_context*, bool);
36
void SORT_get(Jrd::thread_db*, Jrd::sort_context*, ULONG **, RSE_GET_MODE);
37
void SORT_read_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
39
void SORT_get(Jrd::thread_db*, Jrd::sort_context*, ULONG **);
40
FB_UINT64 SORT_read_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
43
void SORT_fini(Jrd::sort_context*, Jrd::Attachment*);
44
Jrd::sort_context* SORT_init(Jrd::thread_db*, USHORT, USHORT, USHORT, const Jrd::sort_key_def*,
45
Jrd::FPTR_REJECT_DUP_CALLBACK, void*, FB_UINT64);
46
void SORT_put(Jrd::thread_db*, Jrd::sort_context*, ULONG **);
47
void SORT_shutdown(Jrd::Attachment*);
48
void SORT_sort(Jrd::thread_db*, Jrd::sort_context*);
49
FB_UINT64 SORT_write_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
51
#endif // JRD_SORT_PROTO_H