class BDB1::Btree
Public Instance Methods
duplicates(key, assoc = true)
click to toggle source
Returns an array of all duplicate associations for the key
.
If assoc
is false
return only the values.
static VALUE bdb1_bt_duplicates(int argc, VALUE *argv, VALUE obj) { VALUE a, b; if (rb_scan_args(argc, argv, "11", &a, &b) == 1) { b = Qtrue; } return bdb1_each_kv(obj, a, rb_ary_new(), b); }
each_dup(key)
click to toggle source
Iterates over duplicate associations for the key
.
static VALUE bdb1_bt_dup(VALUE obj, VALUE a) { return bdb1_each_kv(obj, a, Qnil, Qtrue); }
each_dup_value(key)
click to toggle source
Iterates over duplicate values for the key
.
static VALUE bdb1_bt_dupval(VALUE obj, VALUE a) { return bdb1_each_kv(obj, a, Qnil, Qfalse); }