company logo

PropertyHandle :: RebuildIndex - Rebuild Index

When an index is inconsistent in a way, that it is not complete, i.e. index entries are missing, the index can be rebuild completely. This works as long as the collection has more than one indexes.

The index to be repaired can be by the key_name_w parameter and the generic type (attrstr_w) for generic indexes. When no key name and no generic type had been defined, the currently selected index will be rebuild.

The function requires a second index, which is complete. This is usually the main index for the collection. When repairing the main index, the index name must be passed in key_name_w. In this case the index will be rebuild from the currently selected index.

Return value:  Success ( logical  )

Implementation details

logical PropertyHandle  :: RebuildIndex ( 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()