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

of, validate_hash_key

Constructor Details

#initializeNullValue

:nodoc:



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

def initialize
  self
end

Instance Method Details

#estimate_sizeObject



105
106
107
# File 'lib/aerospike/value/value.rb', line 105

def estimate_size
  0
end

#getObject



97
98
99
# File 'lib/aerospike/value/value.rb', line 97

def get
  nil
end

#pack(packer) ⇒ Object



113
114
115
# File 'lib/aerospike/value/value.rb', line 113

def pack(packer)
  packer.write_nil
end

#to_bytesObject



117
118
119
# File 'lib/aerospike/value/value.rb', line 117

def to_bytes
  ""
end

#to_sObject



101
102
103
# File 'lib/aerospike/value/value.rb', line 101

def to_s
  ""
end

#typeObject



93
94
95
# File 'lib/aerospike/value/value.rb', line 93

def type
  Aerospike::ParticleType::NULL
end

#write(buffer, offset) ⇒ Object



109
110
111
# File 'lib/aerospike/value/value.rb', line 109

def write(buffer, offset)
  0
end