Class: Aerospike::InfinityValue
- Defined in:
- lib/aerospike/value/value.rb
Overview
Infinity 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:
126 127 128 |
# File 'lib/aerospike/value/value.rb', line 126 def initialize self end |
Instance Method Details
#estimate_size ⇒ Object
142 143 144 |
# File 'lib/aerospike/value/value.rb', line 142 def estimate_size 0 end |
#get ⇒ Object
134 135 136 |
# File 'lib/aerospike/value/value.rb', line 134 def get nil end |
#pack(packer) ⇒ Object
150 151 152 |
# File 'lib/aerospike/value/value.rb', line 150 def pack(packer) packer.pack(self) end |
#to_bytes ⇒ Object
154 155 156 |
# File 'lib/aerospike/value/value.rb', line 154 def to_bytes "" end |
#to_msgpack_ext ⇒ Object
158 159 160 |
# File 'lib/aerospike/value/value.rb', line 158 def to_msgpack_ext 1.chr end |
#to_s ⇒ Object
138 139 140 |
# File 'lib/aerospike/value/value.rb', line 138 def to_s "INF" end |
#type ⇒ Object
130 131 132 |
# File 'lib/aerospike/value/value.rb', line 130 def type raise Aerospike::Exceptions::Aerospike.new(Aerospike::ResultCode::PARAMETER_ERROR, "Invalid particle type: INF") end |
#write(buffer, offset) ⇒ Object
146 147 148 |
# File 'lib/aerospike/value/value.rb', line 146 def write(buffer, offset) 0 end |