Class: Aerospike::InfinityValue

Inherits:
Value
  • Object
show all
Defined in:
lib/aerospike/value/value.rb

Overview

Infinity value.

Instance Method Summary collapse

Methods inherited from Value

of, validate_hash_key

Constructor Details

#initializeInfinityValue

:nodoc:



126
127
128
# File 'lib/aerospike/value/value.rb', line 126

def initialize
  self
end

Instance Method Details

#estimate_sizeObject



142
143
144
# File 'lib/aerospike/value/value.rb', line 142

def estimate_size
  0
end

#getObject



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_bytesObject



154
155
156
# File 'lib/aerospike/value/value.rb', line 154

def to_bytes
  ""
end

#to_msgpack_extObject



158
159
160
# File 'lib/aerospike/value/value.rb', line 158

def to_msgpack_ext
  1.chr
end

#to_sObject



138
139
140
# File 'lib/aerospike/value/value.rb', line 138

def to_s
  "INF"
end

#typeObject



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