Get the secondary index of a record from a secondary double index table given the record's primary key.
Get the secondary index of a record from a secondary double index table given the record's primary key
Parameters
-
code
- The owner of the secondary index table -
scope
- The scope where the secondary index resides -
table
- The table where the secondary index resides -
secondary
- It will be replaced with the secondary index key -
primary
- The record's primary key
Precondition
A correponding primary double index table with the given code, scope table must exist
Post Condition
The secondary param will contains the appropriate secondary index key
Post Condition
The primary param will contains the record that corresponds to the appropriate secondary index
Returns
iterator to the secondary index which contains the given record's primary key