6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: hash.h,v 1.11 1997/09/08 21:50:44 momjian Exp $
9
+ * $Id: hash.h,v 1.12 1998/01/24 22:47:55 momjian Exp $
10
10
*
11
11
* NOTES
12
12
* modeled after Margo Seltzer's hash implementation for unix.
@@ -248,16 +248,13 @@ typedef HashItemData *HashItem;
248
248
249
249
/* public routines */
250
250
251
- extern void
252
- hashbuild (Relation heap , Relation index , int natts ,
251
+ extern void hashbuild (Relation heap , Relation index , int natts ,
253
252
AttrNumber * attnum , IndexStrategy istrat , uint16 pcount ,
254
253
Datum * params , FuncIndexInfo * finfo , PredInfo * predInfo );
255
- extern InsertIndexResult
256
- hashinsert (Relation rel , Datum * datum , char * nulls ,
254
+ extern InsertIndexResult hashinsert (Relation rel , Datum * datum , char * nulls ,
257
255
ItemPointer ht_ctid , Relation heapRel );
258
256
extern char * hashgettuple (IndexScanDesc scan , ScanDirection dir );
259
- extern char *
260
- hashbeginscan (Relation rel , bool fromEnd , uint16 keysz ,
257
+ extern char * hashbeginscan (Relation rel , bool fromEnd , uint16 keysz ,
261
258
ScanKey scankey );
262
259
extern void hashrescan (IndexScanDesc scan , bool fromEnd , ScanKey scankey );
263
260
extern void hashendscan (IndexScanDesc scan );
@@ -288,11 +285,9 @@ extern InsertIndexResult _hash_doinsert(Relation rel, HashItem hitem);
288
285
/* hashovfl.c */
289
286
extern Buffer _hash_addovflpage (Relation rel , Buffer * metabufp , Buffer buf );
290
287
extern Buffer _hash_freeovflpage (Relation rel , Buffer ovflbuf );
291
- extern int32
292
- _hash_initbitmap (Relation rel , HashMetaPage metap , int32 pnum ,
288
+ extern int32 _hash_initbitmap (Relation rel , HashMetaPage metap , int32 pnum ,
293
289
int32 nbits , int32 ndx );
294
- extern void
295
- _hash_squeezebucket (Relation rel , HashMetaPage metap ,
290
+ extern void _hash_squeezebucket (Relation rel , HashMetaPage metap ,
296
291
Bucket bucket );
297
292
298
293
@@ -302,8 +297,7 @@ extern Buffer _hash_getbuf(Relation rel, BlockNumber blkno, int access);
302
297
extern void _hash_relbuf (Relation rel , Buffer buf , int access );
303
298
extern void _hash_wrtbuf (Relation rel , Buffer buf );
304
299
extern void _hash_wrtnorelbuf (Relation rel , Buffer buf );
305
- extern Page
306
- _hash_chgbufaccess (Relation rel , Buffer * bufp , int from_access ,
300
+ extern Page _hash_chgbufaccess (Relation rel , Buffer * bufp , int from_access ,
307
301
int to_access );
308
302
extern void _hash_pageinit (Page page , Size size );
309
303
extern void _hash_pagedel (Relation rel , ItemPointer tid );
@@ -317,19 +311,16 @@ extern void _hash_adjscans(Relation rel, ItemPointer tid);
317
311
318
312
319
313
/* hashsearch.c */
320
- extern void
321
- _hash_search (Relation rel , int keysz , ScanKey scankey ,
314
+ extern void _hash_search (Relation rel , int keysz , ScanKey scankey ,
322
315
Buffer * bufP , HashMetaPage metap );
323
316
extern RetrieveIndexResult _hash_next (IndexScanDesc scan , ScanDirection dir );
324
317
extern RetrieveIndexResult _hash_first (IndexScanDesc scan , ScanDirection dir );
325
- extern bool
326
- _hash_step (IndexScanDesc scan , Buffer * bufP , ScanDirection dir ,
318
+ extern bool _hash_step (IndexScanDesc scan , Buffer * bufP , ScanDirection dir ,
327
319
Buffer metabuf );
328
320
329
321
330
322
/* hashutil.c */
331
- extern ScanKey
332
- _hash_mkscankey (Relation rel , IndexTuple itup ,
323
+ extern ScanKey _hash_mkscankey (Relation rel , IndexTuple itup ,
333
324
HashMetaPage metap );
334
325
extern void _hash_freeskey (ScanKey skey );
335
326
extern bool _hash_checkqual (IndexScanDesc scan , IndexTuple itup );
0 commit comments