Class: Aerospike::Exp::Regex
- Inherits:
-
Aerospike::Exp
- Object
- Aerospike::Exp
- Aerospike::Exp::Regex
- Defined in:
- lib/aerospike/exp/exp.rb
Constant Summary
Constants inherited from Aerospike::Exp
Instance Attribute Summary collapse
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#regex ⇒ Object
readonly
Returns the value of attribute regex.
Instance Method Summary collapse
-
#initialize(bin, regex, flags) ⇒ Regex
constructor
A new instance of Regex.
- #pack(packer) ⇒ Object
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(bin, regex, flags) ⇒ Regex
Returns a new instance of Regex.
1118 1119 1120 1121 1122 |
# File 'lib/aerospike/exp/exp.rb', line 1118 def initialize(bin, regex, flags) @bin = bin @regex = regex @flags = flags end |
Instance Attribute Details
#bin ⇒ Object (readonly)
Returns the value of attribute bin.
1116 1117 1118 |
# File 'lib/aerospike/exp/exp.rb', line 1116 def bin @bin end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
1116 1117 1118 |
# File 'lib/aerospike/exp/exp.rb', line 1116 def flags @flags end |
#regex ⇒ Object (readonly)
Returns the value of attribute regex.
1116 1117 1118 |
# File 'lib/aerospike/exp/exp.rb', line 1116 def regex @regex end |
Instance Method Details
#pack(packer) ⇒ Object
1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/aerospike/exp/exp.rb', line 1124 def pack(packer) packer.write_array_header(4) packer.write(REGEX) packer.write(@flags) packer.write(@regex) @bin.pack(packer) end |