KISAMIndexInfo

int KISAMIndexInfo(KHAND handle, int path, IdxBlk *pIdx)

Parameter Type Purpose
handle KHAND handle of table to which the row buffer applies
path int index path number (counted from 1)
pIdx IdxBlk * address of structure to receive properties of the index

This is used to return properties for an index of the table open on the handle. The IdxBlk structure contains the following properties

property type purpose
keylen int key length
dups int 0=no duplicates allowed, 1= duplicates allowed
iBlk int index set blocking
sBlk int sequence set blocking
segcount int number of columns in key
SegBlk array column info

The SegBlk array is an array of up to 8 elements, each structure describing the column. The actual number of elements is given by the segcount member of the IdxBlk structure. The SegBlk structure contains the following

property type purpose
col int column number counted from 1. This may be zero if the key segment is not mapped directly onto a single column
offset int offset into row buffer for the start of the key segment (counted from 0)
length int length in bytes of the key segment
attr int segment attributes (reserved)