IRISLIB database
IndexBuilder Class Reference
Inheritance diagram for IndexBuilder:

Static Public Attributes

 BITMAPCHUNKINMEMORY = None
 BITMAPCHUNKINMEMORY is used during code generation to decide whether or not bitmap chunks can be More...
 

Static Private Member Functions

_.Library.Integer NextId (_.Library.Integer pId, _.Library.Integer pDirection)
 NextId(pId,pDirection) returns the ID value following pId if pDirection is 1 or the ID value preceding pId if. More...
 
_.Library.Status SaveIndices (_.Library.String pStartId, _.Library.String pEndId, _.Library.Boolean lockExtent)
 Files the indices for all objects whose ID is in the range defined by pStartId and pEndId. More...
 

Member Function Documentation

◆ NextId()

_.Library.Integer NextId ( _.Library.Integer  pId,
_.Library.Integer  pDirection 
)
staticprivate

NextId(pId,pDirection) returns the ID value following pId if pDirection is 1 or the ID value preceding pId if.

pDirection is -1.

◆ SaveIndices()

_.Library.Status SaveIndices ( _.Library.String  pStartId,
_.Library.String  pEndId,
_.Library.Boolean  lockExtent 
)
staticprivate

Files the indices for all objects whose ID is in the range defined by pStartId and pEndId.

If pEndId is null then it defaults to pStartId. If pStartId is null then the range is empty and no filing will occur.

If lockExtent is true then an extent lock will be acquired before the indices are built. If the lock cannot be acquired then an error is returned. The lock is released after the index filing is completed.

Returns a <CLASS>Status</CLASS> value indicating success or failure.

Member Data Documentation

◆ BITMAPCHUNKINMEMORY

BITMAPCHUNKINMEMORY = None
static

BITMAPCHUNKINMEMORY is used during code generation to decide whether or not bitmap chunks can be

constructed in memory. It is faster to construct bitmap chunks in memory but if there are a lot of bitmaps, the indexed property or properties have very low selectivity or the index values are large then STORE errors can be encountered. If BITMAPCHUNKINMEMORY is 1 then bitmap chunks are constructed in memory by ConstructIndices. Otherwise, bitmap chunks are constructed using process-private globals. The default is 0, meaning that bitmap chunks are built using process-private globals.