X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=include%2Fisamh.h;h=4183717ed140ff28c0b46314bc043ed57003ccca;hb=b017c9ebfe65bb69d6d6dc17f29a4c331952b8cd;hp=aca550386e82256b3c8e87af293d4baf917db812;hpb=6b0310a64df542131c2f4abded39f35844235e4d;p=idzebra-moved-to-github.git diff --git a/include/isamh.h b/include/isamh.h index aca5503..4183717 100644 --- a/include/isamh.h +++ b/include/isamh.h @@ -27,7 +27,7 @@ typedef struct ISAMH_PP_s *ISAMH_PP; typedef struct ISAMH_filecat_s { /* filecategories, mostly block sizes */ int bsize; /* block size */ - int mblocks; /* maximum blocks */ + int mblocks; /* maximum keys before switching to larger sizes */ } *ISAMH_filecat; typedef struct ISAMH_M_s { @@ -68,9 +68,13 @@ int isamh_pp_num (ISAMH_PP pp); int isamh_block_used (ISAMH is, int type); int isamh_block_size (ISAMH is, int type); + #define isamh_type(x) ((x) & 7) #define isamh_block(x) ((x) >> 3) +#define isamh_addr(blk,typ) (((blk)<<3)+(typ)) +void isamh_buildfirstblock(ISAMH_PP pp); +void isamh_buildlaterblock(ISAMH_PP pp); #ifdef __cplusplus } @@ -81,7 +85,13 @@ int isamh_block_size (ISAMH is, int type); /* * $Log: isamh.h,v $ - * Revision 1.1 1999-06-30 15:06:28 heikki + * Revision 1.3 1999-07-06 16:30:20 heikki + * IsamH startss to work - at least it builds indexes. Can not search yet... + * + * Revision 1.2 1999/07/06 09:37:04 heikki + * Working on isamh - not ready yet. + * + * Revision 1.1 1999/06/30 15:06:28 heikki * copied from isamc.h, simplifying * */