2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: sort_proto.h
|
2003-12-11 11:33:30 +01:00
|
|
|
* DESCRIPTION: Prototype header file for sort.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): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_SORT_PROTO_H
|
|
|
|
#define JRD_SORT_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
|
|
|
class Attachment;
|
|
|
|
struct sort_key_def;
|
|
|
|
struct sort_work_file;
|
|
|
|
struct sort_context;
|
|
|
|
}
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#ifdef SCROLLABLE_CURSORS
|
2006-05-31 10:53:00 +02:00
|
|
|
void SORT_diddle_key(UCHAR *, Jrd::sort_context*, bool);
|
2008-01-16 10:48:41 +01:00
|
|
|
void SORT_get(Jrd::thread_db*, Jrd::sort_context*, ULONG **, Jrd::rse_get_mode);
|
2007-11-12 15:26:44 +01:00
|
|
|
void SORT_read_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
#else
|
2006-10-07 12:53:01 +02:00
|
|
|
void SORT_get(Jrd::thread_db*, Jrd::sort_context*, ULONG **);
|
2007-11-12 18:16:13 +01:00
|
|
|
FB_UINT64 SORT_read_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
2006-05-31 10:53:00 +02:00
|
|
|
void SORT_fini(Jrd::sort_context*, Jrd::Attachment*);
|
|
|
|
Jrd::sort_context* SORT_init(Jrd::thread_db*, USHORT, USHORT, USHORT, const Jrd::sort_key_def*,
|
2007-11-12 15:26:44 +01:00
|
|
|
Jrd::FPTR_REJECT_DUP_CALLBACK, void*, FB_UINT64);
|
2006-10-07 12:53:01 +02:00
|
|
|
void SORT_put(Jrd::thread_db*, Jrd::sort_context*, ULONG **);
|
2006-05-31 10:53:00 +02:00
|
|
|
void SORT_shutdown(Jrd::Attachment*);
|
2006-10-07 12:53:01 +02:00
|
|
|
void SORT_sort(Jrd::thread_db*, Jrd::sort_context*);
|
2007-11-12 15:26:44 +01:00
|
|
|
FB_UINT64 SORT_write_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#endif // JRD_SORT_PROTO_H
|