Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (56 sloc) 2.13 KB
-include_lib("riak_core/include/riak_core_vnode.hrl").
-record(riak_kv_put_req_v1, {
bkey :: {binary(),binary()},
object :: term(),
req_id :: non_neg_integer(),
start_time :: non_neg_integer(),
options :: list()}).
-record(riak_kv_get_req_v1, {
bkey :: {binary(), binary()},
req_id :: non_neg_integer()}).
-record(riak_kv_mget_req_v1, {
bkeys :: list({binary(), binary()}),
req_id :: non_neg_integer(),
from :: term()}).
-record(riak_kv_listkeys_req_v1, {
bucket :: binary(),
req_id :: non_neg_integer()}).
-record(riak_kv_listkeys_req_v2, {
bucket :: binary()|'_'|tuple(),
req_id :: non_neg_integer(),
caller :: pid()}).
-record(riak_kv_listkeys_req_v3, {
bucket :: binary() | tuple(),
item_filter :: function()}).
%% same as _v3, but triggers ack-based backpressure
-record(riak_kv_listkeys_req_v4, {
bucket :: binary() | tuple(),
item_filter :: function()}).
-record(riak_kv_listbuckets_req_v1, {
item_filter :: function()}).
-record(riak_kv_index_req_v1, {
bucket :: binary() | tuple(),
item_filter :: function(),
qry :: riak_index:query_def()}).
-record(riak_kv_vnode_status_req_v1, {}).
-record(riak_kv_delete_req_v1, {
bkey :: {binary(), binary()},
req_id :: non_neg_integer()}).
-record(riak_kv_map_req_v1, {
bkey :: {binary(), binary()},
qterm :: term(),
keydata :: term(),
from :: term()}).
-record(riak_kv_vclock_req_v1, {
bkeys = [] :: [{binary(), binary()}]
}).
-define(KV_PUT_REQ, #riak_kv_put_req_v1).
-define(KV_GET_REQ, #riak_kv_get_req_v1).
-define(KV_MGET_REQ, #riak_kv_mget_req_v1).
-define(KV_LISTBUCKETS_REQ, #riak_kv_listbuckets_req_v1).
-define(KV_LISTKEYS_REQ, #riak_kv_listkeys_req_v4).
-define(KV_INDEX_REQ, #riak_kv_index_req_v1).
-define(KV_VNODE_STATUS_REQ, #riak_kv_vnode_status_req_v1).
-define(KV_DELETE_REQ, #riak_kv_delete_req_v1).
-define(KV_MAP_REQ, #riak_kv_map_req_v1).
-define(KV_VCLOCK_REQ, #riak_kv_vclock_req_v1).
Jump to Line
Something went wrong with that request. Please try again.