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
permalink #initialize ⇒ InfinityValue
:nodoc:
126 127 128 |
# File 'lib/aerospike/value/value.rb', line 126 def initialize self end |
Instance Method Details
permalink #estimate_size ⇒ Object
[View source]
142 143 144 |
# File 'lib/aerospike/value/value.rb', line 142 def estimate_size 0 end |
permalink #get ⇒ Object
[View source]
134 135 136 |
# File 'lib/aerospike/value/value.rb', line 134 def get nil end |
permalink #pack(packer) ⇒ Object
[View source]
150 151 152 |
# File 'lib/aerospike/value/value.rb', line 150 def pack(packer) packer.pack(self) end |
permalink #to_bytes ⇒ Object
[View source]
154 155 156 |
# File 'lib/aerospike/value/value.rb', line 154 def to_bytes "" end |
permalink #to_msgpack_ext ⇒ Object
[View source]
158 159 160 |
# File 'lib/aerospike/value/value.rb', line 158 def to_msgpack_ext 1.chr end |
permalink #to_s ⇒ Object
[View source]
138 139 140 |
# File 'lib/aerospike/value/value.rb', line 138 def to_s "INF" end |
permalink #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 |
permalink #write(buffer, offset) ⇒ Object
[View source]
146 147 148 |
# File 'lib/aerospike/value/value.rb', line 146 def write(buffer, offset) 0 end |