Skip to content

Commit 862813d

Browse files
committed
docs
1 parent b053a85 commit 862813d

File tree

1 file changed

+62
-62
lines changed

1 file changed

+62
-62
lines changed

README.md

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ After this you can transfer archive to whatever place you want, unarchive it and
304304
## Space - StorageSpace
305305
### [async] `count()` - Counting tuples in the space
306306
* [optional] `List<dynamic> key` - Include in count only matched tuples by key
307-
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type
307+
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type [see](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_index/pairs/)
308308
* [return] `int` - Count of tuples
309309

310310
### [async] `isEmpty()` - Checking that space is empty
@@ -318,7 +318,7 @@ After this you can transfer archive to whatever place you want, unarchive it and
318318

319319
### [async] `iterator()` - Creating iterator for tuples ([see pairs](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/pairs/))
320320
* [optional] `List<dynamic> key` - Include only matched tuples by key
321-
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type
321+
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type [see](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_index/pairs/)
322322
* [return] `StorageIterator` - Created iterator instance
323323

324324
### [async] `insert()` - Inserting tuple into the space
@@ -361,82 +361,82 @@ After this you can transfer archive to whatever place you want, unarchive it and
361361
* [optional] `List<dynamic> key` - Selecting tuples only matched with key
362362
* [optional] `int offset` - Offset for selection
363363
* [optional] `int limit` - Limit for selection
364-
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type
364+
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type [see](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/pairs/)
365365
* [return] `List<dynamic>` - Selected tuples
366366

367367
### [async] `batch()` - Batch operations provider
368-
* `Function(StorageBatchSpaceBuilder builder) builder` - Batch operations build
368+
* `Function(StorageBatchSpaceBuilder builder) builder` - Batch operations builder
369369
* [return] `List<dynamic>` - Result tuple after batch execution
370370

371-
## Index - StorageIndex
372-
### [async] `count()`
373-
* [optional] `List<dynamic> key`
374-
* [optional] `StorageIteratorType iteratorType`
375-
* [return] `int`
371+
## Index - StorageIndex
372+
### [async] `count()` - Counting tuples in the space
373+
* [optional] `List<dynamic> key` - Include in count only matched tuples by key
374+
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type [see](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/pairs/)
375+
* [return] `int` - Count of tuples
376376

377-
### [async] `iterator()`
378-
* [optional] `List<dynamic> key`
379-
* [optional] `StorageIteratorType iteratorType`
380-
* [return] `StorageIterator`
377+
### [async] `iterator()` - Creating iterator for tuples ([see pairs](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/pairs/))
378+
* [optional] `List<dynamic> key` - Include only matched tuples by key
379+
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type [see](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/pairs/)
380+
* [return] `StorageIterator` - Created iterator instance
381381

382-
### [async] `delete()`
383-
* `List<dynamic> key`
384-
* [return] `List<dynamic>`
382+
### [async] `delete()` - Deleting tuple from the space by index
383+
* `List<dynamic> key` - Key to find tuple for deletion
384+
* [return] `List<dynamic>` - Deleted tuple
385385

386-
### [async] `min()`
387-
* [optional] `List<dynamic> key`
388-
* [return] `List<dynamic>`
386+
### [async] `min()` - Getting minimal tuple from the space
387+
* [optional] `List<dynamic> key` - Key to find tuple
388+
* [return] `List<dynamic>` - Received tuple
389389

390-
### [async] `max()`
391-
* [optional] `List<dynamic> key`
392-
* [return] `List<dynamic>`
390+
### [async] `max()` - Getting maximal tuple from the space
391+
* [optional] `List<dynamic> key` - Key to find tuple
392+
* [return] `List<dynamic>` - Received tuple
393393

394-
### [async] `update()`
395-
* `List<dynamic> key`
396-
* `List<StorageUpdateOperation> operations`
394+
### [async] `update()` - Updating space tuple by key with operations
395+
* `List<dynamic> key` - Tuple key
396+
* `List<StorageUpdateOperation> operations` - Update oeprations. [See](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_index/update/)
397397
* [return] `List<dynamic>`
398398

399-
### [async] `select()`
400-
* [optional] `List<dynamic`
401-
* [optional] `int offset`
402-
* [optional] `int limit`
403-
* [optional] `StorageIteratorType iteratorType`
404-
* [return] `List<dynamic>`
399+
### [async] `select()` - Selecting tuples from the space
400+
* [optional] `List<dynamic` - Selecting tuples only matched with key
401+
* [optional] `int offset` - Offset for selection
402+
* [optional] `int limit` - Limit for selection
403+
* [optional] `StorageIteratorType iteratorType` - Tarantool iterator type [see](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_index/pairs/)
404+
* [return] `List<dynamic>` - Selected tuples
405405

406-
### [async] `batch()`
407-
* `Function(StorageBatchIndexBuilder builder) builder`
408-
* [return] `List<dynamic>`
406+
### [async] `batch()` - Batch operations provider
407+
* `Function(StorageBatchIndexBuilder builder) builder` - Batch operations builder
408+
* [return] `List<dynamic>` - Result tuple after batch execution
409409

410410
## Iterator - StorageIterator
411-
### [async] `next()`
412-
* [optional] `count`
413-
* [return] `List<List<dynamic>>?`
414-
415-
### [async] `destroy()`
416-
417-
### [async] `collect()`
418-
* [optional] `bool Function(List<dynamic> value) filter`
419-
* [optional] `dynamic Function(List<dynamic> value) map`
420-
* [optional] `int limit`
421-
* [optional] `int offset`
422-
* [optional] `int count`
423-
* [return] `List<dynamic>`
411+
### [async] `next()` - Getting next element of the iterator
412+
* [optional] `count` - Prefetch count. Binding can prefetch more tuples than 1 and combine it after return
413+
* [return] `List<List<dynamic>>?` - Tuples or null if iterator reached the end
424414

425-
### [async] `forEach()`
426-
* `void Function(dynamic element) action`
427-
* [optional] `bool Function(List<dynamic> value) filter`
428-
* [optional] `dynamic Function(List<dynamic> value) map`
429-
* [optional] `int limit`
430-
* [optional] `int offset`
431-
* [optional] `int count`
432-
433-
### [async] `stream()`
434-
* [optional] `bool Function(List<dynamic> value) filter`
435-
* [optional] `dynamic Function(List<dynamic> value) map`
436-
* [optional] `int limit`
437-
* [optional] `int offset`
438-
* [optional] `int count`
439-
* [return] `Stream<dynamic>`
415+
### [async] `destroy()` - Destroying Tarnatool iterator
416+
417+
### [async] `collect()` - Collecting all elements by iterator
418+
* [optional] `bool Function(List<dynamic> value) filter` - Iterator filter
419+
* [optional] `dynamic Function(List<dynamic> value) map` - Iterator mapper
420+
* [optional] `int limit` - Iterator limit
421+
* [optional] `int offset` - Iterator offset
422+
* [optional] `int count` - Prefetch count. Binding can prefetch more tuples than 1 and combine it after return
423+
* [return] `List<dynamic>` - Collected tuples
424+
425+
### [async] `forEach()` - Executing actin for all elements by iterator
426+
* `void Function(dynamic element) action` - Action on tuple
427+
* [optional] `bool Function(List<dynamic> value) filter` - Iterator filter
428+
* [optional] `dynamic Function(List<dynamic> value) map` - Iterator mapper
429+
* [optional] `int limit` - Iterator limit
430+
* [optional] `int offset` - Iterator offset
431+
* [optional] `int count` - Prefetch count. Binding can prefetch more tuples than 1 and combine it after return
432+
433+
### [async] `stream()` - Stream of tuples from iterator
434+
* [optional] `bool Function(List<dynamic> value) filter` - Iterator filter
435+
* [optional] `dynamic Function(List<dynamic> value) map` - Iterator mapper
436+
* [optional] `int limit` - Iterator limit
437+
* [optional] `int offset` - Iterator offset
438+
* [optional] `int count` - Prefetch count. Binding can prefetch more tuples than 1 and combine it after return
439+
* [return] `Stream<dynamic>` - Stream of tuples
440440

441441
## Batch
442442
### StorageBatchSpaceBuilder

0 commit comments

Comments
 (0)