Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
SYNTAX:
 
xpfGetHashedValue(hashTableIndex, index : INTEGER;
                  hashedValue           : GENERIC)
                  instanceId            : GENERIC;
 
The xpfGetHashedValue function looks up in the specified hash table for instances that match the given ?lookup value?. The hashTableIndex identifies the actual hash table. The hashTableIndex is returned by a previous xpxMakeHashTable operation when the actual hash table was created. The argument hashedValue is the actual value of the attribute which is specified as key. The argument index is the index in the hash table for all elements in the hash table that exactly matches the specified hashedValue. index start with the value 1. instanceId is the returned value that uniquely identifies the instance in the hash table that matches the ?lookup value?: hashTableIndex, index and hashedValue.
This function returns the constant xpxNullId when no matching instance is found in the actual hash table.
Using the mechanism of hash table will considerable improve performance when searching a collection of instances for matching attribute values.
Related operations: xpxGetHashedValue, xpfMakeHashTable, xpxMakeHashTable, xpxDeleteHashTable.

  • No labels