Class: Tarantool::Client::Page
- Inherits:
-
Data
- Object
- Data
- Tarantool::Client::Page
- Includes:
- Enumerable
- Defined in:
- tarantool-client/lib/tarantool/client/page.rb
Overview
One page of a select asked with fetch_position: true: the tuples (converted by as:) and the position to
continue after with after:, nil when the page is empty. Opaque: tied to the index and iterator that
produced it.
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#tuples ⇒ Object
readonly
Returns the value of attribute tuples.
Instance Method Summary collapse
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position
8 9 10 |
# File 'tarantool-client/lib/tarantool/client/page.rb', line 8 def position @position end |
#tuples ⇒ Object (readonly)
Returns the value of attribute tuples
8 9 10 |
# File 'tarantool-client/lib/tarantool/client/page.rb', line 8 def tuples @tuples end |
Instance Method Details
#each ⇒ Object
11 |
# File 'tarantool-client/lib/tarantool/client/page.rb', line 11 def each(&) = tuples.each(&) |
#empty? ⇒ Boolean
13 |
# File 'tarantool-client/lib/tarantool/client/page.rb', line 13 def empty? = tuples.empty? |
#size ⇒ Object
15 |
# File 'tarantool-client/lib/tarantool/client/page.rb', line 15 def size = tuples.size |