company logo

PropertyHandle :: RepairIndex - Repair Index

The function repairs the index for the collection in the property handle. When no key name is passed, the currently selected index will be repaired. Messages about repair actions are written to the error log file.

The function will remove index entries pointing to invalid instance (deleted). It repairs also index tree information in large indexes .

The function will not detect inconsistent indexes , i.e. missing index entries or invalid keys. In order to repair this type of inconsistency , one may call RepairKey () or RebuildIndex ().

Notes:

Note: after repairing a single index, the number of elements in the index may differ from other indexes. Especially, when entries have been removed from the index, other indexes for the collection should be repaired as well.

Return value:  Success ( logical  )

Implementation details

logical PropertyHandle  :: RepairIndex ( NString &key_name_w=NString::Null(), NString &attrstr_w=NString::Null() )
  • key_name_w - Key name for conversion Default: NString::Null()
  • attrstr_w - Attribute type

    The attribute type is passed as 0-terminated string. It must be one of the defined values in the enumerated value set for the attribute types defined for the generic attribute.

    Default: NString::Null()