ajuint ajBtreeFieldGetLenC (
const char* nametxt
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | nametxt | Input | Field name |
| ajuint | RETURN | Field name length |
From EMBOSS 6.4.0
ajuint ajBtreeFieldGetLenS (
const AjPStr name
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | name | Input | Field name |
| ajuint | RETURN | Field name length |
From EMBOSS 6.4.0
const AjPStr ajBtreeFieldGetExtensionC (
const char* nametxt
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | nametxt | Input | Field name |
| const AjPStr | RETURN | Filename extension |
From EMBOSS 6.4.0
const AjPStr ajBtreeFieldGetExtensionS (
const AjPStr name
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | name | Input | Field name |
| const AjPStr | RETURN | Filename extension |
From EMBOSS 6.4.0
AjBool ajBtreeFieldGetSecondaryC (
const char* nametxt
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | nametxt | Input | Field name |
| AjBool | RETURN | True for a secondary index where indexed terms treturn IDs False for an ID index where terms return file positions. |
From EMBOSS 6.4.0
AjBool ajBtreeFieldGetSecondaryS (
const AjPStr name
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | name | Input | Field name |
| AjBool | RETURN | True for a secondary index where indexed terms treturn IDs False for an ID index where terms return file positions. |
From EMBOSS 6.4.0
AjPBtcache ajBtreeCacheNewC (
const char* filetxt,
const char* exttxt,
const char* idirtxt,
const char* mode,
AjBool compressed,
ajuint kwlimit,
ajuint pagesize,
ajuint cachesize,
ajulong pagecount,
ajuint order,
ajuint fill,
ajuint level,
ajuint sorder,
ajuint sfill,
ajulong count,
ajulong countall
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | filetxt | Input | name of file |
| const char* | exttxt | Input | extension of file |
| const char* | idirtxt | Input | index file directory |
| const char* | mode | Input | opening mode |
| AjBool | compressed | Input | Compressed index flag |
| ajuint | kwlimit | Input | Max key size |
| ajuint | pagesize | Input | pagesize |
| ajuint | cachesize | Input | size of cache |
| ajulong | pagecount | Input | page count |
| ajuint | order | Input | Tree order |
| ajuint | fill | Input | Number of entries per bucket |
| ajuint | level | Input | level of tree |
| ajuint | sorder | Input | order of secondary tree |
| ajuint | sfill | Input | Number of entries per secondary bucket |
| ajulong | count | Input | Number of entries in the index |
| ajulong | countall | Input | Number of total entries in the index |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 3.0.0
AjPBtcache ajBtreeCacheNewS (
const AjPStr file,
const AjPStr ext,
const AjPStr idir,
const char* mode,
AjBool compressed,
ajuint kwlimit,
ajuint pagesize,
ajuint cachesize,
ajulong pagecount,
ajuint order,
ajuint fill,
ajuint level,
ajuint sorder,
ajuint sfill,
ajulong count,
ajulong countall
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | file | Input | name of file |
| const AjPStr | ext | Input | extension of file |
| const AjPStr | idir | Input | index file directory |
| const char* | mode | Input | opening mode |
| AjBool | compressed | Input | Compressed index flag |
| ajuint | kwlimit | Input | Max key size |
| ajuint | pagesize | Input | pagesize |
| ajuint | cachesize | Input | size of cache |
| ajulong | pagecount | Input | page count |
| ajuint | order | Input | Tree order |
| ajuint | fill | Input | Number of entries per bucket |
| ajuint | level | Input | level of tree |
| ajuint | sorder | Input | order of secondary tree |
| ajuint | sfill | Input | Number of entries per secondary bucket |
| ajulong | count | Input | Number of entries in the index |
| ajulong | countall | Input | Number of total entries in the index |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 6.4.0
AjPBtcache ajBtreeCacheNewReadC (
const char* filetxt,
const char* exttxt,
const char* idirtxt
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | filetxt | Input | name of file |
| const char* | exttxt | Input | extension of file |
| const char* | idirtxt | Input | index file directory |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 6.4.0
AjPBtcache ajBtreeCacheNewReadS (
const AjPStr file,
const AjPStr ext,
const AjPStr idir
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | file | Input | name of file |
| const AjPStr | ext | Input | extension of file |
| const AjPStr | idir | Input | index file directory |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 6.4.0
AjPBtcache ajBtreeCacheNewUpdateC (
const char* filetxt,
const char* exttxt,
const char* idirtxt
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | filetxt | Input | name of file |
| const char* | exttxt | Input | extension of file |
| const char* | idirtxt | Input | index file directory |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 6.4.0
AjPBtcache ajBtreeCacheNewUpdateS (
const AjPStr file,
const AjPStr ext,
const AjPStr idir
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | file | Input | name of file |
| const AjPStr | ext | Input | extension of file |
| const AjPStr | idir | Input | index file directory |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 6.4.0
ajulong ajBtreeCacheDel (
AjPBtcache* Pthis
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache* | Pthis | Output | Cache object |
| ajulong | RETURN | Index file size |
From EMBOSS 3.0.0
AjBool ajBtreeCacheIsSecondary (
const AjPBtcache thys
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtcache | thys | Input | Cache object |
| AjBool | RETURN | True if cache is secondary |
From EMBOSS 6.4.0
void ajBtreeCacheStatsOut (
AjPFile outf,
const AjPBtcache cache,
ajulong* Pcache,
ajulong* Preads,
ajulong* Pwrites,
ajulong* Psize
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPFile | outf | Modify | output file file |
| const AjPBtcache | cache | Input | cache object |
| ajulong* | Pcache | Modify | Number of cache reads to date |
| ajulong* | Preads | Modify | Number of disk reads to date |
| ajulong* | Pwrites | Modify | Number of disk writes to date |
| ajulong* | Psize | Modify | Number of cache pages to date |
| void | RETURN |
From EMBOSS 6.4.0
AjPBtpage ajBtreeCacheRead (
AjPBtcache cache,
ajulong pagepos
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| ajulong | pagepos | Input | page number |
| AjPBtpage | RETURN | disc cache page pointer |
From EMBOSS 3.0.0
void ajBtreeCacheSync (
AjPBtcache cache,
ajulong rootpage
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| ajulong | rootpage | Input | root page |
| void | RETURN |
From EMBOSS 3.0.0
void ajBtreeCacheRootSync (
AjPBtcache cache,
ajulong rootpage
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| ajulong | rootpage | Input | secondary (locked) root page |
| void | RETURN |
From EMBOSS 6.4.0
AjPBtpage ajBtreeCacheWrite (
AjPBtcache cache,
ajulong pagepos
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| ajulong | pagepos | Input | page number |
| AjPBtpage | RETURN | disc cache page pointer |
From EMBOSS 3.0.0
AjPBtpage ajBtreeCacheWriteBucket (
AjPBtcache cache,
ajulong pagepos
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| ajulong | pagepos | Input | page number |
| AjPBtpage | RETURN | disc cache page pointer |
From EMBOSS 6.4.0
AjPBtpage ajBtreeCacheWriteNode (
AjPBtcache cache,
ajulong pagepos
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| ajulong | pagepos | Input | page number |
| AjPBtpage | RETURN | disc cache page pointer |
From EMBOSS 6.4.0
AjPBtpage ajBtreeCacheWriteBucketnew (
AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| AjPBtpage | RETURN | disc cache page pointer |
From EMBOSS 6.4.0
AjPBtpage ajBtreeCacheWriteNodenew (
AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| AjPBtpage | RETURN | disc cache page pointer |
From EMBOSS 6.4.0
AjPBtpage ajBtreeCacheWriteOverflownew (
AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| AjPBtpage | RETURN | disc cache page pointer |
From EMBOSS 6.4.0
void ajBtreeCreateRootNode (
AjPBtcache cache,
ajulong rootpage
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| ajulong | rootpage | Input | root block |
| void | RETURN |
From EMBOSS 3.0.0
AjPBtpage ajBtreeFindInsert (
AjPBtcache cache,
const AjPStr key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key to search for |
| AjPBtpage | RETURN | leaf node where item should be inserted |
From EMBOSS 3.0.0
AjPBtId ajBtreeIdNew (
void
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtId | RETURN | Index ID object |
From EMBOSS 3.0.0
void ajBtreeIdDel (
AjPBtId* thys
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtId* | thys | Output | index ID object |
| void | RETURN |
From EMBOSS 3.0.0
void ajBtreeIdDelVoid (
void** voidarg
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| void** | voidarg | Output | Index ID object, passed as void for use by list and table destructors. |
| void | RETURN |
From EMBOSS 6.4.0
void ajBtreeDumpKeywords (
AjPBtcache cache,
ajuint dmin,
ajuint dmax,
AjPFile outf
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| ajuint | dmin | Input | minimum number of times the key should appear |
| ajuint | dmax | Input | maximum number of times the key should appear |
| AjPFile | outf | Modify | output file |
| void | RETURN |
From EMBOSS 6.4.0
void ajBtreeInsertId (
AjPBtcache cache,
const AjPBtId id
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPBtId | id | Input | Id object |
| void | RETURN | pointer to a page |
From EMBOSS 3.0.0
AjPBtId ajBtreeIdFromKey (
AjPBtcache cache,
const AjPStr key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key |
| AjPBtId | RETURN | pointer to an ID structure or NULL if not found |
From EMBOSS 3.0.0
void ajBtreeWriteParamsC (
const AjPBtcache cache,
const char* fntxt,
const char* exttxt,
const char* idirtxt
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtcache | cache | Input | cache |
| const char* | fntxt | Input | file name |
| const char* | exttxt | Input | index file extension name |
| const char* | idirtxt | Input | index file directory |
| void | RETURN |
From EMBOSS 6.4.0
void ajBtreeWriteParamsS (
const AjPBtcache cache,
const AjPStr fn,
const AjPStr ext,
const AjPStr idir
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtcache | cache | Input | cache |
| const AjPStr | fn | Input | file name |
| const AjPStr | ext | Input | index file extension name |
| const AjPStr | idir | Input | index file directory |
| void | RETURN |
From EMBOSS 6.4.0
AjBool ajBtreeReadParamsC (
const char* filetxt,
const char* exttxt,
const char* idirtxt,
AjBool* secondary,
AjBool* compressed,
ajuint* kwlimit,
ajuint* pagesize,
ajuint* cachesize,
ajulong* pagecount,
ajuint* order,
ajuint* nperbucket,
ajuint* level,
ajuint* sorder,
ajuint* snperbucket,
ajulong* count,
ajulong* countall
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | filetxt | Input | file |
| const char* | exttxt | Input | file extension |
| const char* | idirtxt | Input | index directory |
| AjBool* | secondary | Output | true for a secondary index |
| AjBool* | compressed | Output | true for a compressed index |
| ajuint* | kwlimit | Output | maximum length of a keyword |
| ajuint* | pagesize | Output | size of pages |
| ajuint* | cachesize | Output | cachesize |
| ajulong* | pagecount | Output | page count |
| ajuint* | order | Output | tree order |
| ajuint* | nperbucket | Output | bucket fill |
| ajuint* | level | Output | depth of tree (0 = root leaf) |
| ajuint* | sorder | Output | secondary tree order |
| ajuint* | snperbucket | Output | secondary bucket fill |
| ajulong* | count | Output | number of primary keywords in the index |
| ajulong* | countall | Output | number of total keywords in the index |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajBtreeReadParamsS (
const AjPStr file,
const AjPStr ext,
const AjPStr idir,
AjBool* secondary,
AjBool* compressed,
ajuint* kwlimit,
ajuint* pagesize,
ajuint* cachesize,
ajulong* pagecount,
ajuint* order,
ajuint* nperbucket,
ajuint* level,
ajuint* sorder,
ajuint* snperbucket,
ajulong* count,
ajulong* countall
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | file | Input | file |
| const AjPStr | ext | Input | file extension |
| const AjPStr | idir | Input | index directory |
| AjBool* | secondary | Output | true for a secondary index |
| AjBool* | compressed | Output | true for a compressed index |
| ajuint* | kwlimit | Output | maximum length of a keyword |
| ajuint* | pagesize | Output | size of pages |
| ajuint* | cachesize | Output | cachesize |
| ajulong* | pagecount | Output | page count |
| ajuint* | order | Output | tree order |
| ajuint* | nperbucket | Output | bucket fill |
| ajuint* | level | Output | depth of tree (0 = root leaf) |
| ajuint* | sorder | Output | secondary tree order |
| ajuint* | snperbucket | Output | secondary bucket fill |
| ajulong* | count | Output | number of primary keywords in the index |
| ajulong* | countall | Output | number of total keywords in the index |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjPBtWild ajBtreeWildNew (
AjPBtcache cache,
const AjPStr wild
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | wild | Input | wildcard id prefix (without asterisk) |
| AjPBtWild | RETURN | b+ tree wildcard object |
From EMBOSS 3.0.0
void ajBtreeWildDel (
AjPBtWild* Pthis
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtWild* | Pthis | Modify | b+ tree wildcard structure |
| void | RETURN |
From EMBOSS 3.0.0
AjPBtKeyWild ajBtreeKeyWildNew (
AjPBtcache cache,
const AjPStr wild
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | wild | Input | wildcard keyword prefix (without asterisk) |
| AjPBtKeyWild | RETURN | b+ tree wildcard object |
From EMBOSS 3.0.0
void ajBtreeKeyWildDel (
AjPBtKeyWild* Pthis
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtKeyWild* | Pthis | Modify | b+ tree wildcard keyword structure |
| void | RETURN |
From EMBOSS 3.0.0
AjPBtpage ajBtreeFindInsertW (
AjPBtcache cache,
const AjPStr key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key to search for |
| AjPBtpage | RETURN | leaf node where item should be inserted |
From EMBOSS 3.0.0
AjPBtId ajBtreeIdFromKeyW (
AjPBtcache cache,
AjPBtWild wild
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| AjPBtWild | wild | Modify | Wildcard |
| AjPBtId | RETURN | next matching Id or NULL |
From EMBOSS 3.0.0
void ajBtreeListFromKeyW (
AjPBtcache cache,
const AjPStr key,
AjPList idlist
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | Wildcard key |
| AjPList | idlist | Modify | list of matching AjPBtIds |
| void | RETURN |
From EMBOSS 3.0.0
AjBool ajBtreeReplaceId (
AjPBtcache cache,
const AjPBtId rid
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPBtId | rid | Input | replacement id object |
| AjBool | RETURN | true if success |
From EMBOSS 3.0.0
ajuint ajBtreeReadEntries (
const char* filename,
const char* indexdir,
const char* directory,
AjPStr** seqfiles,
AjPStr** reffiles
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | filename | Input | file name |
| const char* | indexdir | Input | index file directory |
| const char* | directory | Input | file directory |
| AjPStr** | seqfiles | Output | sequence file names |
| AjPStr** | reffiles | Output | reference file names (if any) |
| ajuint | RETURN | number of entries |
From EMBOSS 3.0.0
ajuint ajBtreeReadEntriesS (
const AjPStr filename,
const AjPStr indexdir,
const AjPStr directory,
AjPStr** seqfiles,
AjPStr** reffiles
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | filename | Input | file name |
| const AjPStr | indexdir | Input | index file directory |
| const AjPStr | directory | Input | file directory |
| AjPStr** | seqfiles | Output | sequence file names |
| AjPStr** | reffiles | Output | reference file names (if any) |
| ajuint | RETURN | number of entries |
From EMBOSS 6.4.0
void ajBtreeInsertDupId (
AjPBtcache cache,
AjPBtId id
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| AjPBtId | id | Modify | potentially duplicate id |
| void | RETURN |
From EMBOSS 3.0.0
AjPList ajBtreeDupFromKey (
AjPBtcache cache,
const AjPStr key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key |
| AjPList | RETURN | list of matching AjPBtIds or NULL |
From EMBOSS 3.0.0
AjPBtPri ajBtreePriNew (
void
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtPri | RETURN | Index ID object |
From EMBOSS 3.0.0
void ajBtreePriDel (
AjPBtPri* thys
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtPri* | thys | Output | index keyword primary object |
| void | RETURN |
From EMBOSS 3.0.0
AjBool ajBtreeInsertKeyword (
AjPBtcache cache,
AjPBtPri pri
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| AjPBtPri | pri | Modify | Id object |
| AjBool | RETURN | True if keyword and ID combination was inserted False if keyword exists alraedy for ID |
From EMBOSS 3.0.0
AjBool ajBtreePriFindKeyword (
AjPBtcache cache,
const AjPStr key,
ajulong* treeblock
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key |
| ajulong* | treeblock | Output | Tree block number for id |
| AjBool | RETURN | ajTrue if found |
From EMBOSS 6.4.0
AjBool ajBtreePriFindKeywordLen (
AjPBtcache cache,
const AjPStr key,
ajulong* treeblock
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key |
| ajulong* | treeblock | Output | Tree block number for id |
| AjBool | RETURN | ajTrue if found |
From EMBOSS 6.4.0
AjPBtcache ajBtreeSecCacheNewC (
const char* filetxt,
const char* exttxt,
const char* idirtxt,
const char* mode,
AjBool compressed,
ajuint kwlimit,
ajuint pagesize,
ajuint cachesize,
ajulong pagecount,
ajuint order,
ajuint fill,
ajuint level,
ajuint sorder,
ajuint sfill,
ajulong count,
ajulong countall
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const char* | filetxt | Input | name of file |
| const char* | exttxt | Input | extension of file |
| const char* | idirtxt | Input | index file directory |
| const char* | mode | Input | opening mode |
| AjBool | compressed | Input | Compressed index flag |
| ajuint | kwlimit | Input | Max key size |
| ajuint | pagesize | Input | pagesize |
| ajuint | cachesize | Input | size of cache |
| ajulong | pagecount | Input | page count |
| ajuint | order | Input | Tree order |
| ajuint | fill | Input | Number of entries per bucket |
| ajuint | level | Input | level of tree |
| ajuint | sorder | Input | order of secondary tree |
| ajuint | sfill | Input | Number of entries per secondary bucket |
| ajulong | count | Input | Number of entries in the index |
| ajulong | countall | Input | Number of total entries in the index |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 3.0.0
AjPBtcache ajBtreeSecCacheNewS (
const AjPStr file,
const AjPStr ext,
const AjPStr idir,
const char* mode,
AjBool compressed,
ajuint kwlimit,
ajuint pagesize,
ajuint cachesize,
ajulong pagecount,
ajuint order,
ajuint fill,
ajuint level,
ajuint sorder,
ajuint sfill,
ajulong count,
ajulong countall
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | file | Input | name of file |
| const AjPStr | ext | Input | extension of file |
| const AjPStr | idir | Input | index file directory |
| const char* | mode | Input | opening mode |
| AjBool | compressed | Input | Compressed index flag |
| ajuint | kwlimit | Input | Max key size |
| ajuint | pagesize | Input | pagesize |
| ajuint | cachesize | Input | size of cache |
| ajulong | pagecount | Input | page count |
| ajuint | order | Input | Tree order |
| ajuint | fill | Input | Number of entries per bucket |
| ajuint | level | Input | level of tree |
| ajuint | sorder | Input | order of secondary tree |
| ajuint | sfill | Input | Number of entries per secondary bucket |
| ajulong | count | Input | Number of entries in the index |
| ajulong | countall | Input | Number of total entries in the index |
| AjPBtcache | RETURN | initialised disc block cache structure |
From EMBOSS 6.4.0
AjBool ajBtreeSecInsertId (
AjPBtcache cache,
const AjPStr id
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | id | Input | Id |
| AjBool | RETURN | True if ID was inserted False if ID already exists |
From EMBOSS 6.4.0
AjBool ajBtreeSecFindId (
AjPBtcache cache,
const AjPStr key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key |
| AjBool | RETURN | true if ID already added |
From EMBOSS 6.4.0
AjPBtpage ajBtreeSecFindInsert (
AjPBtcache cache,
const AjPStr key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key to search for |
| AjPBtpage | RETURN | leaf node where item should be inserted |
From EMBOSS 3.0.0
void ajBtreeLockTest (
AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| void | RETURN |
From EMBOSS 3.0.0
AjPList ajBtreeSecLeafList (
AjPBtcache cache,
ajulong rootblock
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| ajulong | rootblock | Input | root page of secondary tree |
| AjPList | RETURN | List of IDs matching a keyword |
From EMBOSS 3.0.0
AjBool ajBtreeVerifyId (
AjPBtcache cache,
ajulong rootblock,
const AjPStr id
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| ajulong | rootblock | Input | root page of secondary tree |
| const AjPStr | id | Input | test ID |
| AjBool | RETURN | true if ID found |
From EMBOSS 3.0.0
AjPBtId ajBtreeIdFromKeywordW (
AjPBtcache cache,
AjPBtKeyWild wild,
AjPBtcache idcache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| AjPBtKeyWild | wild | Modify | Wildcard |
| AjPBtcache | idcache | Modify | id cache |
| AjPBtId | RETURN | next matching Id or NULL |
From EMBOSS 3.0.0
void ajBtreeListFromKeywordW (
AjPBtcache cache,
const AjPStr key,
AjPBtcache idcache,
AjPList btidlist
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key |
| AjPBtcache | idcache | Modify | id cache |
| AjPList | btidlist | Modify | List of matching AjPBtId entries |
| void | RETURN |
From EMBOSS 3.0.0
AjPBtHybrid ajBtreeHybNew (
void
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtHybrid | RETURN | Index ID object |
From EMBOSS 4.0.0
void ajBtreeHybDel (
AjPBtHybrid* Pthis
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtHybrid* | Pthis | Output | index ID object |
| void | RETURN |
From EMBOSS 4.0.0
AjPBtpage ajBtreeHybFindInsert (
AjPBtcache cache,
const AjPStr key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPStr | key | Input | key to search for |
| AjPBtpage | RETURN | leaf node where item should be inserted |
From EMBOSS 4.0.0
void ajBtreeHybInsertId (
AjPBtcache cache,
AjPBtHybrid hyb
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| AjPBtHybrid | hyb | Modify | Id object |
| void | RETURN | pointer to a page |
From EMBOSS 4.0.0
AjPBtpage ajBtreeNumFindInsert (
AjPBtcache cache,
const ajulong key
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const ajulong | key | Input | key to search for |
| AjPBtpage | RETURN | leaf node where item should be inserted |
From EMBOSS 4.0.0
void ajBtreeInsertNum (
AjPBtcache cache,
const AjPBtNumId num,
AjPBtpage page
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPBtNumId | num | Input | Id object |
| AjPBtpage | page | Output | cache page |
| void | RETURN | pointer to a page |
From EMBOSS 4.0.0
void ajBtreeFreePriArray (
AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| void | RETURN |
From EMBOSS 4.0.0
void ajBtreeFreeSecArray (
AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| void | RETURN |
From EMBOSS 4.0.0
void ajBtreeHybLeafList (
AjPBtcache cache,
ajulong rootblock,
const AjPStr idname,
AjPList list
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| ajulong | rootblock | Input | root page of secondary tree |
| const AjPStr | idname | Input | id name |
| AjPList | list | Modify | list to add BtIDs to |
| void | RETURN |
From EMBOSS 4.0.0
void ajBtreeDumpHybKeys (
AjPBtcache cache,
ajuint dmin,
ajuint dmax,
AjPFile outf
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| ajuint | dmin | Input | minimum number of times the key should appear |
| ajuint | dmax | Input | maximum number of times the key should appear |
| AjPFile | outf | Modify | output file |
| void | RETURN |
From EMBOSS 5.0.0
AjBool ajBtreeDeleteHybId (
AjPBtcache cache,
const AjPBtHybrid hyb
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPBtHybrid | hyb | Input | hybrid object |
| AjBool | RETURN | True if found and deleted |
From EMBOSS 6.1.0
AjBool ajBtreeDeletePriId (
AjPBtcache cache,
const AjPBtPri pri
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Modify | cache |
| const AjPBtPri | pri | Input | keyword object |
| AjBool | RETURN | True if found and deleted |
From EMBOSS 6.1.0
ajulong ajBtreeGetPagecount (
const AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtcache | cache | Input | cache |
| ajulong | RETURN | number of pages in a tree index |
From EMBOSS 6.4.0
ajuint ajBtreeGetPagesize (
const AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtcache | cache | Input | cache |
| ajuint | RETURN | Page size of a tree index |
From EMBOSS 6.4.0
ajulong ajBtreeGetTotsize (
const AjPBtcache cache
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtcache | cache | Input | cache |
| ajulong | RETURN | number of bytes in a tree index |
From EMBOSS 6.4.0
const char* ajBtreePageGetTypename (
const AjPBtpage page
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtpage | page | Input | Page |
| const char* | RETURN | Name of page type |
From EMBOSS 6.4.0
AjBool ajBtreeStatNode (
AjPBtcache cache,
const AjPBtpage page,
AjBool full,
ajuint* nkeys,
ajuint* overflows,
ajuint* freespace,
ajulong* refs,
const AjPTable newpostable
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| const AjPBtpage | page | Input | Page |
| AjBool | full | Input | If true, write detailed debug report |
| ajuint* | nkeys | Output | Number of keys |
| ajuint* | overflows | Output | Number of overflow pages |
| ajuint* | freespace | Output | Unused space in this page |
| ajulong* | refs | Modify | References to pages |
| const AjPTable | newpostable | Input | Page numbers for page offsets |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajBtreeStatNumnode (
AjPBtcache cache,
const AjPBtpage page,
AjBool full,
ajuint* nkeys,
ajuint* overflows,
ajuint* freespace,
ajulong* refs,
const AjPTable newpostable
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| const AjPBtpage | page | Input | Page |
| AjBool | full | Input | If true, write detailed debug report |
| ajuint* | nkeys | Output | Number of keys |
| ajuint* | overflows | Output | Number of overflow pages |
| ajuint* | freespace | Output | Unused space in this page |
| ajulong* | refs | Modify | References to pages |
| const AjPTable | newpostable | Input | Page numbers for page offsets |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajBtreeStatBucket (
AjPBtcache cache,
const AjPBtpage page,
AjBool full,
ajuint* nentries,
ajuint* ndups,
ajuint* nextra,
ajuint* overflows,
ajuint* freespace,
ajulong* refs,
const AjPTable newpostable
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| const AjPBtpage | page | Input | Page |
| AjBool | full | Input | If true, write detailed debug report |
| ajuint* | nentries | Output | Number of entries |
| ajuint* | ndups | Output | Number of entries with duplicates |
| ajuint* | nextra | Output | Number of extra entries as duplicates |
| ajuint* | overflows | Output | Number of overflow pages |
| ajuint* | freespace | Output | Unused space in this page |
| ajulong* | refs | Modify | References to pages |
| const AjPTable | newpostable | Input | Page numbers for page offsets |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajBtreeStatNumbucket (
AjPBtcache cache,
const AjPBtpage page,
AjBool full,
ajuint* nentries,
ajuint* overflows,
ajuint* freespace
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| const AjPBtpage | page | Input | Page |
| AjBool | full | Input | If true, write detailed debug report |
| ajuint* | nentries | Output | Number of entries |
| ajuint* | overflows | Output | Number of overflow pages |
| ajuint* | freespace | Output | Unused space in this page |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajBtreeStatPribucket (
AjPBtcache cache,
const AjPBtpage page,
AjBool full,
ajuint* nentries,
ajuint* overflows,
ajuint* freespace,
ajulong* refs,
const AjPTable newpostable
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| const AjPBtpage | page | Input | Page |
| AjBool | full | Input | If true, write detailed debug report |
| ajuint* | nentries | Output | Number of entries |
| ajuint* | overflows | Output | Number of overflow pages |
| ajuint* | freespace | Output | Unused space in this page |
| ajulong* | refs | Modify | References to pages |
| const AjPTable | newpostable | Input | Page numbers for page offsets |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
AjBool ajBtreeStatSecbucket (
AjPBtcache cache,
const AjPBtpage page,
AjBool full,
ajuint* nentries,
ajuint* overflows,
ajuint* freespace
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| AjPBtcache | cache | Output | cache |
| const AjPBtpage | page | Input | Page |
| AjBool | full | Input | If true, write detailed debug report |
| ajuint* | nentries | Output | Number of entries |
| ajuint* | overflows | Output | Number of overflow pages |
| ajuint* | freespace | Output | Unused space in this page |
| AjBool | RETURN | True on success |
From EMBOSS 6.4.0
ajuint ajBtreePageGetSize (
const AjPBtpage page
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPBtpage | page | Input | Page |
| ajuint | RETURN | Used page size |
From EMBOSS 6.4.0
void ajBtreeExit (
void
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| void | RETURN |
From EMBOSS 6.4.0
ajint ajBtreeIdCmp (
const void* x,
const void* y
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const void* | x | Input | Standard argument. Item value. |
| const void* | y | Input | Standard argument. Comparison item value. |
| ajint | RETURN | Comparison result. Zero if equal, non-zero if different. |
From EMBOSS 6.4.0
ajuint ajBtreeIdHash (
const void* key,
ajuint hashsize
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const void* | key | Input | Standard argument. Table key. |
| ajuint | hashsize | Input | Standard argument. Estimated Hash size. |
| ajuint | RETURN | Hash value in range 0 to hashsize-1 |
From EMBOSS 6.4.0