Top.Mail.Ru
index_object:get() | Tarantool
 

index_object:get()

index_object:get()

object index_object
index_object:get(key)

Search for a tuple via the given index, as described earlier.

Parameters:
Return:

the tuple whose index-key fields are equal to the passed key values.

Rtype:

tuple

Possible errors:

  • no such index;
  • wrong type;
  • more than one tuple matches.

Complexity factors: Index size, Index type. See also space_object:get().

Example:

tarantool> box.space.tester.index.primary:get(2)
---
- [2, 'Music']
...