Class: Aerospike::InfinityValue
- Defined in:
- lib/aerospike/value/value.rb
Overview
Infinity value.
Constant Summary
Constants inherited from Value
Instance Method Summary collapse
- #estimate_size ⇒ Object
- #get ⇒ Object
-
#initialize ⇒ InfinityValue
constructor
:nodoc:.
- #pack(packer) ⇒ Object
- #to_bytes ⇒ Object
- #to_msgpack_ext ⇒ Object
- #to_s ⇒ Object
- #type ⇒ Object
- #write(buffer, offset) ⇒ Object
Methods inherited from Value
Constructor Details
#initialize ⇒ InfinityValue
:nodoc:
103 104 105 |
# File 'lib/aerospike/value/value.rb', line 103 def initialize self end |
Instance Method Details
#estimate_size ⇒ Object
119 120 121 |
# File 'lib/aerospike/value/value.rb', line 119 def estimate_size 0 end |
#get ⇒ Object
111 112 113 |
# File 'lib/aerospike/value/value.rb', line 111 def get nil end |
#pack(packer) ⇒ Object
127 128 129 |
# File 'lib/aerospike/value/value.rb', line 127 def pack(packer) packer.pack(self) end |
#to_bytes ⇒ Object
131 132 133 |
# File 'lib/aerospike/value/value.rb', line 131 def to_bytes '' end |
#to_msgpack_ext ⇒ Object
135 136 137 |
# File 'lib/aerospike/value/value.rb', line 135 def to_msgpack_ext 1.chr end |
#to_s ⇒ Object
115 116 117 |
# File 'lib/aerospike/value/value.rb', line 115 def to_s "INF" end |
#type ⇒ Object
107 108 109 |
# File 'lib/aerospike/value/value.rb', line 107 def type raise Aerospike::Exceptions::Aerospike.new(Aerospike::ResultCode::PARAMETER_ERROR, "Invalid particle type: INF") end |
#write(buffer, offset) ⇒ Object
123 124 125 |
# File 'lib/aerospike/value/value.rb', line 123 def write(buffer, offset) 0 end |