index_object:min()
-
object
index_object -
index_object:min([key]) Find the minimum value in the specified index.
Parameters: - index_object (index_object) – an object reference.
- key (scalar/table) – values to be matched against the index key
Return: the tuple for the first key in the index. If optional
keyvalue is supplied, returns the first key which is greater than or equal tokeyvalue. In a future version of Tarantool, index:min(keyvalue) will return nothing ifkeyvalue is not equal to a value in the index.Rtype: tuple
Possible errors: index is not of type ‘TREE’.
Complexity factors: Index size, Index type.
Example:
tarantool> box.space.tester.index.primary:min() --- - ['Alpha!', 55, 'This is the first tuple!'] ...
-