Class: Aerospike::NullValue

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

Overview

Empty value.

Instance Method Summary collapse

Methods inherited from Value

get_packer, of, put_packer

Constructor Details

#initializeNullValue

:nodoc:



78
79
80
# File 'lib/aerospike/value/value.rb', line 78

def initialize
  self
end

Instance Method Details

#estimate_sizeObject



95
96
97
# File 'lib/aerospike/value/value.rb', line 95

def estimate_size
  0
end

#getObject



86
87
88
# File 'lib/aerospike/value/value.rb', line 86

def get
  nil
end

#pack(packer) ⇒ Object



103
104
105
# File 'lib/aerospike/value/value.rb', line 103

def pack(packer)
  packer.write_nil
end

#to_bytesObject



107
108
109
# File 'lib/aerospike/value/value.rb', line 107

def to_bytes
  ''
end

#to_sObject



90
91
92
# File 'lib/aerospike/value/value.rb', line 90

def to_s
  ''
end

#typeObject



82
83
84
# File 'lib/aerospike/value/value.rb', line 82

def type
  Aerospike::ParticleType::NULL
end

#write(buffer, offset) ⇒ Object



99
100
101
# File 'lib/aerospike/value/value.rb', line 99

def write(buffer, offset)
  0
end