Class: Tarantool::Client::Page

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#position ⇒ Object (readonly)

Returns the value of attribute position

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (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