Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
The Persistent attribute hash table concept cover attributes of the following data types: SdaiString / sdaiSTRING SdaiInteger /sdaiINTEGER SdaiInstance / sdaiINSTANCE EdmiPackedDate / edmPACKED_DATE
Code Block
languagecpp
themeConfluence
FUNCTION xpxDefinePersistentAttrHashTable (entityId       : GENERIC;
                                           attrId         : GENERIC;
                                           options        : INTEGER;
                                           hashTableWidth : INTEGER; 
                                           stringLength   : INTEGER)
                                           status         : INTEGER;
    
                                                  


FUNCTION xpxDefinePersistentAttrHashTableBN (schemaName     : STRING;
                                             entityName     : STRING;
                                             attributeName  : STRING;
                                             options        : INTEGER;
                                             hashTableWidth : INTEGER;
                                             stringLength   : INTEGER)
                                             status         : INTEGER;    
                                                     


FUNCTION xpxDefinePersistentAttrHashTableBNEx (schemaName     : STRING;
                                               entityNames    : AGGREGATE OF STRING;
                                               attributeName  : STRING;
                                               options        : INTEGER;
                                               hashTableWidth : INTEGER; 
                                               stringLength   : INTEGER)
                                               status         : INTEGER;     
                                                       

FUNCTION xpxGetPersistentAttrHashTable (modelId                 : GENERIC;
                                        entityName              : STRING;
                                        attributeName           : STRING;
                                        entityIndex             : INTEGER;
                                        VAR nextEntityIndex     : INTEGER;
                                        VAR attrHashTableDescrs : SET OF GENERIC)
                                        status                  : INTEGER;     
                                                     

FUNCTION xpfGetHashedAttrInstance (modelId            : GENERIC;"
                                   attrId             : GENERIC;"
                                   attrValue          : GENERIC)"
                                   matchingInstanceId : GENERIC;   
                                             
FUNCTION xpfGetHashedAttrInstanceEx (modelId            : GENERIC;
                                     entityId           : GENERIC;
                                     attrId             : GENERIC;
                                     attrValue          : GENERIC)
                                     matchingInstanceId : GENERIC;   
                                                     

FUNCTION xpfGetHashedAttrInstanceBN (modelId            : GENERIC;
                                     entityName         : STRING;
                                     attributeName      : STRING;
                                     attrValue          : GENERIC)
                                     matchingInstanceId : GENERIC;   
                                                     
                                          

FUNCTION xpxGetHashedAttrInstances (modelId               : GENERIC;
                                    attrId                : GENERIC;
                                    attrValue             : GENERIC;
                                    index                 : INTEGER;
                                    maxHits               : INTEGER;
                                    VAR indexOfLastFound  : INTEGER;
                                    VAR matchingInstances : SET OF GENERIC)
                                    rstat                 : INTEGER;

FUNCTION xpxGetHashedAttrInstancesBN (modelId               : GENERIC;
                                      entityName            : STRING;
                                      attributeName         : STRING;
                                      attrValue             : GENERIC;
                                      index                 : INTEGER;
                                      maxHits               : INTEGER;
                                      VAR indexOfLastFound  : INTEGER;
                                      VAR matchingInstances : SET OF GENERIC)
                                      rstat                 : INTEGER;
               

FUNCTION xpxGetHashedDateInterval (modelId                    : GENERIC;"
                                   entityNameOrEntityId       : GENERIC;"
                                   attributeNameOrAttributeId : GENERIC;"
                                   firstDate                  : INTEGER;"  --EdmiPackedDate is compatible with INTEGER
                                   lastDate                   : INTEGER;"  --EdmiPackedDate is compatible with INTEGER
                                   index                      : INTEGER;"
                                   maxHits                    : INTEGER;"
                                   VAR indexOfLastFound       : INTEGER;"
                                   VAR actualHits             : INTEGER;"
                                   VAR matchingInstances      : SET OF GENERIC)
                                   status                     : INTEGER;



This function is used to define a persistent hash table to increase search speed in the database. This function defines attribute hash table connected to the specified attribute in the specified schema and is equivalent to edmiDefinePersistentAttrHashTable.

Arguments

...

Insert excerpt
US:_a_entityId
US:_a_entityId
nopaneltrue
Insert excerpt
US:_a_attrId
US:_a_attrId
nopaneltrue
Insert excerpt
US:_a_options_XPX
US:_a_options_XPX
nopaneltrue
Insert excerpt
US:_a_hashTableWidth
US:_a_hashTableWidth
nopaneltrue
Insert excerpt
US:_a_stringLength
US:_a_stringLength
nopaneltrue

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

Options

...

Insert excerpt
US:_o_DELETE_ATTRIBUTE_HASH_TABLE
US:_o_DELETE_ATTRIBUTE_HASH_TABLE
nopaneltrue
Insert excerpt
US:_o_REDEFINE_ATTRIBUTE_HASH_TABLE
US:_o_REDEFINE_ATTRIBUTE_HASH_TABLE
nopaneltrue
Insert excerpt
US:_o_SUBTYPES
US:_o_SUBTYPES
nopaneltrue
Insert excerpt
US:_o_FIXED_STRING_LENGTH
US:_o_FIXED_STRING_LENGTH
nopaneltrue
Insert excerpt
US:_o_UNIQUE_ATTRIBUTE_VALUES
US:_o_UNIQUE_ATTRIBUTE_VALUES
nopaneltrue

 

Example

...

<example missing>

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "hashedattribute" and parent = "5636522"