Top.Mail.Ru
space_object:index | Tarantool
 
space_object:index
space_object:index

space_object:index

space_object:index

object space_object
box.space.index

A container for all defined indexes. There is a Lua object of type box.index with methods to search tuples and iterate over them in predefined order.

To reset, use box.stat.reset().

Rtype:table

Example:

-- checking the number of indexes for space 'tester'
tarantool> local counter=0; for i=0,#box.space.tester.index do
  if box.space.tester.index[i]~=nil then counter=counter+1 end
  end; print(counter)
1
---
...
-- checking the type of index 'primary'
tarantool> box.space.tester.index.primary.type
---
- TREE
...