Class: Aerospike::Exp::ListVal

Inherits:
Aerospike::Exp show all
Defined in:
lib/aerospike/exp/exp.rb

Constant Summary

Constants inherited from Aerospike::Exp

MODIFY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Aerospike::Exp

abs, add, and, arshift, bin, bin_exists, bin_type, blob_bin, blob_val, bool_bin, bool_val, #bytes, ceil, cond, count, def, device_size, digest_modulo, div, eq, exclusive, float_bin, float_val, floor, ge, geo, geo_bin, geo_compare, gt, hll_bin, infinity_val, int_and, int_bin, int_not, int_or, int_val, int_xor, is_tombstone, key, key_exists, last_update, le, let, list_bin, list_val, log, lscan, lshift, lt, map_bin, map_val, max, memory_size, min, mod, mul, ne, nil_val, not, or, pow, record_size, regex_compare, rscan, rshift, set_name, since_update, #size, str_bin, str_val, sub, to_float, to_int, ttl, unknown, var, void_time, wildcard_val, #write

Constructor Details

#initialize(list) ⇒ ListVal

Returns a new instance of ListVal.



1301
1302
1303
# File 'lib/aerospike/exp/exp.rb', line 1301

def initialize(list)
  @list = list
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



1299
1300
1301
# File 'lib/aerospike/exp/exp.rb', line 1299

def list
  @list
end

Instance Method Details

#pack(packer) ⇒ Object



1305
1306
1307
1308
1309
1310
1311
# File 'lib/aerospike/exp/exp.rb', line 1305

def pack(packer)
  # List values need an extra array and QUOTED in order to distinguish
  # between a multiple argument array call and a local list.
  packer.write_array_header(2)
  packer.write(QUOTED)
  Value.of(@list).pack(packer)
end