ajindex


Data type AjPBtNode

Btree node

Attributes

NameTypeDescription
NodeTypeRoot, Internal or Leaf
BlockOffsetOffset within mainindex
NkeysNumber of keys filled
TotLenTotal length of keys
LeftLeft Sibling
RightRight Sibling
OverflowOffset to overflow block
PrevNodePrevious node


Data type AjPBtMem

Dynamic list for btree memory arrays

Attributes

NameTypeDescription
nextnext node
prevprevious node
karraykey array (primary trees)
parraypointer arrays (primary and secondary trees)
overflowsoverflows (primary) and keys (secondary)
usednode in use


Data type AjPBtId

Btree ID

Attributes

NameTypeDescription
idUnique ID
dbnoDatabase file number
dupsDuplicates
offsetOffset within database file (ftello)
refoffsetOffset within reference database file (ftello)


Data type AjPBtWild

Btree wildcard

Attributes

NameTypeDescription
idWildcard ID
pagenoPage number of leaf
firsttrue for first search
listlist of AjPBtIds


Data type AjPBucket

Bucket structure on disc

Key, filenumber, ftell ID, subkey page (char*, ajint, ajlong, ajlong)

Attributes

NameTypeDescription
NodeTypeNode type
NentriesNumber of entries
OverflowOffset to overflow block
keylenkey lengths
IdsIds


Data type AjPBtNumId

Btree ID

Attributes

NameTypeDescription
dbnoDatabase file number
offsetOffset within database file (ftello)
refoffsetOffset within reference database file (ftello)


Data type AjPNumBucket

Offset bucket structure on disc

Key, filenumber, ftell ID, subkey page (char*, ajint, ajlong, ajlong)

Attributes

NameTypeDescription
NodeTypeNode type
NentriesNumber of entries
OverflowOffset to overflow block
NumIdsecondary tree IDs


Data type AjPBtpage

Btree page

Attributes

NameTypeDescription
pagenoPage number
dirtyUndocumented
nextNext page
prevPrevious page
bufBuffer


Data type AjPBtcache

B tree cache

Attributes

NameTypeDescription
fpTree index file pointer
pagesizeSize of cache pages
totsizeTree index length
lruLeast recently used cache page
mruMost recently used cache page
listLengthNumber of pages in cache
orderOrder of primary tree
levelDepth of primary tree
cachesizeMaximum number of pages to cache
nperbucketNumber of entries in a primary bucket
replaceReplacement ID
countNumber of entries indexed
deletedDeletion flag
slevelDepth of secondary tree
sorderOrder of secondary tree
snperbucketNumber of entries in a secondary bucket
secrootblockSecondary tree root block
kwlimitMax length of secondary key
bmemPrimary array allocation MRU bottom
tmemPrimary array allocation MRU top
bsmemSecondary array allocation MRU bottom
tsmemSecondary array allocation MRU top


Data type AjPBtPri

Btree primary keyword

Attributes

NameTypeDescription
keywordkeyword
treeblockdisc block of secondary tree
idId string


Data type AjPPriBucket

Keyword primary bucket structure on disc

Attributes

NameTypeDescription
NodeTypeNode type
NentriesNumber of entries
OverflowOffset to overflow block
keylenkey lengths
codesPrimary keywords


Data type AjPSecBucket

Keyword secondary bucket structure on disc

Attributes

NameTypeDescription
NodeTypeNode type
NentriesNumber of entries
OverflowOffset to overflow block
keylenkey lengths
idsIds


Data type AjPBtKeyWild

Btree keyword wildcard object

Attributes

NameTypeDescription
keywordWildcard keyword
pagenoPage number of primary tree leaf
firsttrue for first search
listlist of AjPBtPris
cachecache for secondary tree
idlistlist of AjPStr IDs
secpagenoPage number of secondary tree leaf


Data type AjPBtHybrid

Btree ID

Attributes

NameTypeDescription
key1Unique ID
dbnoDatabase file number
dupsDuplicates
offsetOffset within database file (ftello)
refoffsetOffset within reference database file (ftello)
treeblockSecondary tree root page