index_object:count()
-
object
index_object
¶ -
index_object:
count
([key][, iterator])¶ Iterate over an index, counting the number of tuples which match the key-value.
Parameters: - index_object (
index_object
) – an object reference. - key (
scalar/table
) – values to be matched against the index key - iterator – comparison method
Return: the number of matching tuples.
Rtype: number
Example:
tarantool> box.space.tester.index.primary:count(999) --- - 0 ... tarantool> box.space.tester.index.primary:count('Alpha!', { iterator = 'LE' }) --- - 1 ...
- index_object (
-