These docs are for v1.3.0. Click to read the latest docs for v1.6.

db_idx64_upperbound

Get the secondary index of a record from a secondary 64-bit integer index table given the secondary index key.

Get the upperbound secondary index from a secondary 64-bit integer index table given the secondary index key Upperbound secondary index is the first secondary index which key is < the given secondary index 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 - The pointer to the secondary index key which acts as upperbound pivot point, later on it will be replaced with the upperbound secondary index key
  • primary - It will be replaced with the primary key of the record which the upperbound secondary index contains

Precondition

A correponding primary 64-bit integer index table with the given code, scope table must exist

Post Condition

The secondary param will contains the upperbound secondary index key

Post Condition

The primary param will contains the record that corresponds to the upperbound secondary index

Returns

iterator to the upperbound secondary index