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:

[View source]

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

def initialize
  self
end

Instance Method Details

#estimate_sizeObject

[View source]

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

def estimate_size
  0
end

#getObject

[View source]

134
135
136
# File 'lib/aerospike/value/value.rb', line 134

def get
  nil
end

#pack(packer) ⇒ Object

[View source]

150
151
152
# File 'lib/aerospike/value/value.rb', line 150

def pack(packer)
  packer.pack(self)
end

#to_bytesObject

[View source]

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

def to_bytes
  ""
end

#to_msgpack_extObject

[View source]

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

def to_msgpack_ext
  1.chr
end

#to_sObject

[View source]

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

def to_s
  "INF"
end

#typeObject

[View source]

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

[View source]

146
147
148
# File 'lib/aerospike/value/value.rb', line 146

def write(buffer, offset)
  0
end