Class: Tarantool::FiberDB::Query
- Inherits:
-
Query
- Object
- Query
- Tarantool::FiberDB::Query
show all
- Defined in:
- lib/tarantool/fiber_db.rb
Constant Summary
Constants included
from Request
Request::BINARY, Request::BOX_ADD, Request::BOX_REPLACE, Request::BOX_RETURN_TUPLE, Request::CALL_HEADER, Request::DELETE_HEADER, Request::EMPTY, Request::INSERT_HEADER, Request::INT32_0, Request::INT32_1, Request::LEST_INT32, Request::MAX_BYTE_SIZE, Request::ONE, Request::PACK_STRING, Request::REQUEST_CALL, Request::REQUEST_DELETE, Request::REQUEST_INSERT, Request::REQUEST_PING, Request::REQUEST_SELECT, Request::REQUEST_UPDATE, Request::SELECT_HEADER, Request::TYPES_AUTO, Request::TYPES_FALLBACK, Request::TYPES_STR_AUTO, Request::TYPES_STR_STR, Request::UPDATE_FIELDNO_OP, Request::UPDATE_HEADER, Request::UPDATE_OPS, Request::ZERO
Constants included
from Serializers
Serializers::MAP
Util::Packer::INT16, Util::Packer::INT32, Util::Packer::INT64, Util::Packer::INT8, Util::Packer::MAX_INT16, Util::Packer::MAX_INT32, Util::Packer::MAX_INT64, Util::Packer::MAX_INT8, Util::Packer::MAX_SINT16, Util::Packer::MAX_SINT32, Util::Packer::MAX_SINT64, Util::Packer::MAX_SINT8, Util::Packer::MIN_INT, Util::Packer::MIN_SINT16, Util::Packer::MIN_SINT32, Util::Packer::MIN_SINT64, Util::Packer::MIN_SINT8, Util::Packer::SINT16, Util::Packer::SINT32, Util::Packer::SINT64, Util::Packer::SINT8
Instance Attribute Summary
Attributes included from Request
#insert_with_shards_count, #previous_shards_count, #shard_proc, #shards_count
Instance Method Summary
collapse
-
#all(space_no, index_no, keys, opts = {}) ⇒ Object
-
#call(func_name, values, opts = {}) ⇒ Object
-
#delete(space_no, pk, opts = {}) ⇒ Object
-
#first(space_no, index_no, key, opts = {}) ⇒ Object
-
#insert(space_no, tuple, opts = {}) ⇒ Object
-
#invoke(func_name, values, opts = {}) ⇒ Object
-
#ping ⇒ Object
-
#replace(space_no, tuple, opts = {}) ⇒ Object
-
#select(space_no, index_no, keys, offset, limit, opts = {}) ⇒ Object
-
#store(space_no, tuple, opts = {}) ⇒ Object
-
#update(space_no, pk, operation, opts = {}) ⇒ Object
Methods inherited from Query
#all_blk, #all_cb, #call_blk, #call_cb, #delete_blk, #delete_cb, #first_blk, #first_cb, #initialize, #insert_blk, #insert_cb, #invoke_blk, #invoke_cb, #ping_blk, #replace_blk, #replace_cb, #select_blk, #select_cb, #store_blk, #store_cb, #update_blk, #update_cb
Methods included from Request
#_all_shards, #_call, #_delete, #_detect_shard, #_detect_shard_for_insert, #_detect_shards, #_detect_shards_for_insert, #_detect_shards_for_key, #_detect_shards_for_keys, #_detect_type, #_detect_types, #_flat_uniq, #_get_shard_nums, #_init_shard_vars, #_insert, #_modify_request, #_pack_operations, #_parse_hash_definition, #_ping, #_raise_integer_overflow, #_raise_or_return, #_select, #_send_request, #_space_call_fix_values, #_update, #all_shards, #detect_shard, #detect_shard_for_insert, #detect_shards, #detect_shards_for_insert, #pack_field, #pack_tuple, #shard
#check_type, #get_serializer
Instance Method Details
#all(space_no, index_no, keys, opts = {}) ⇒ Object
115
116
117
118
|
# File 'lib/tarantool/fiber_db.rb', line 115
def all(space_no, index_no, keys, opts={})
all_cb(space_no, index_no, keys, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#call(func_name, values, opts = {}) ⇒ Object
155
156
157
158
|
# File 'lib/tarantool/fiber_db.rb', line 155
def call(func_name, values, opts={})
call_cb(func_name, values, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#delete(space_no, pk, opts = {}) ⇒ Object
145
146
147
148
|
# File 'lib/tarantool/fiber_db.rb', line 145
def delete(space_no, pk, opts={})
delete_cb(space_no, pk, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#first(space_no, index_no, key, opts = {}) ⇒ Object
120
121
122
123
|
# File 'lib/tarantool/fiber_db.rb', line 120
def first(space_no, index_no, key, opts={})
first_cb(space_no, index_no, key, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#insert(space_no, tuple, opts = {}) ⇒ Object
125
126
127
128
|
# File 'lib/tarantool/fiber_db.rb', line 125
def insert(space_no, tuple, opts={})
insert_cb(space_no, tuple, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#invoke(func_name, values, opts = {}) ⇒ Object
150
151
152
153
|
# File 'lib/tarantool/fiber_db.rb', line 150
def invoke(func_name, values, opts={})
invoke_cb(func_name, values, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#ping ⇒ Object
160
161
162
163
|
# File 'lib/tarantool/fiber_db.rb', line 160
def ping
ping_cb(::Fiber.current)
_raise_or_return ::Fiber.yield
end
|
#replace(space_no, tuple, opts = {}) ⇒ Object
130
131
132
133
|
# File 'lib/tarantool/fiber_db.rb', line 130
def replace(space_no, tuple, opts={})
replace_cb(space_no, tuple, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#select(space_no, index_no, keys, offset, limit, opts = {}) ⇒ Object
110
111
112
113
|
# File 'lib/tarantool/fiber_db.rb', line 110
def select(space_no, index_no, keys, offset, limit, opts={})
select_cb(space_no, index_no, keys, offset, limit, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#store(space_no, tuple, opts = {}) ⇒ Object
135
136
137
138
|
# File 'lib/tarantool/fiber_db.rb', line 135
def store(space_no, tuple, opts={})
store_cb(space_no, tuple, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|
#update(space_no, pk, operation, opts = {}) ⇒ Object
140
141
142
143
|
# File 'lib/tarantool/fiber_db.rb', line 140
def update(space_no, pk, operation, opts={})
update_cb(space_no, pk, operation, ::Fiber.current, opts)
_raise_or_return ::Fiber.yield
end
|