Class: Aerospike::PredExp::Regex
- Inherits:
-
Aerospike::PredExp
- Object
- Aerospike::PredExp
- Aerospike::PredExp::Regex
- Defined in:
- lib/aerospike/query/pred_exp/regex.rb
Constant Summary
Constants inherited from Aerospike::PredExp
AND, GEOJSON_BIN, GEOJSON_CONTAINS, GEOJSON_VALUE, GEOJSON_VAR, GEOJSON_WITHIN, INTEGER_BIN, INTEGER_EQUAL, INTEGER_GREATER, INTEGER_GREATEREQ, INTEGER_LESS, INTEGER_LESSEQ, INTEGER_UNEQUAL, INTEGER_VALUE, INTEGER_VAR, LAST_UPDATE, LIST_BIN, LIST_ITERATE_AND, LIST_ITERATE_OR, MAPKEY_ITERATE_AND, MAPKEY_ITERATE_OR, MAPVAL_ITERATE_AND, MAPVAL_ITERATE_OR, MAP_BIN, NOT, OR, RECSIZE, STRING_BIN, STRING_EQUAL, STRING_REGEX, STRING_UNEQUAL, STRING_VALUE, STRING_VAR, VOID_TIME
Instance Method Summary collapse
- #estimate_size ⇒ Object
-
#initialize(op, flag = Flags::NONE) ⇒ Regex
constructor
A new instance of Regex.
- #write(buffer, offset) ⇒ Object
Methods inherited from Aerospike::PredExp
and, estimate_size, geojson_bin, geojson_contains, geojson_value, geojson_var, geojson_within, integer_bin, integer_equal, integer_greater, integer_greater_eq, integer_less, integer_less_eq, integer_unequal, integer_value, integer_var, last_update, list_bin, list_iterate_and, list_iterate_or, map_bin, mapkey_iterate_and, mapkey_iterate_or, mapval_iterate_and, mapval_iterate_or, not, or, record_size, string_bin, string_equal, string_regex, string_unequal, string_value, string_var, void_time, write
Constructor Details
#initialize(op, flag = Flags::NONE) ⇒ Regex
Returns a new instance of Regex.
6 7 8 9 |
# File 'lib/aerospike/query/pred_exp/regex.rb', line 6 def initialize(op, flag = Flags::NONE) @op = op @flag = flag end |
Instance Method Details
#estimate_size ⇒ Object
11 12 13 |
# File 'lib/aerospike/query/pred_exp/regex.rb', line 11 def estimate_size 10 end |
#write(buffer, offset) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/aerospike/query/pred_exp/regex.rb', line 15 def write(buffer, offset) # write op type buffer.write_int16(@op, offset) offset += 2 # write length buffer.write_int32(4, offset) offset += 4 # write predicate count buffer.write_int32(@flag, offset) offset += 4 offset end |