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:



80
81
82
# File 'lib/aerospike/value/value.rb', line 80

def initialize
  self
end

Instance Method Details

#estimate_sizeObject



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

def estimate_size
  0
end

#getObject



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

def get
  nil
end

#pack(packer) ⇒ Object



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

def pack(packer)
  packer.write_nil
end

#to_bytesObject



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

def to_bytes
  ''
end

#to_sObject



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

def to_s
  ''
end

#typeObject



84
85
86
# File 'lib/aerospike/value/value.rb', line 84

def type
  Aerospike::ParticleType::NULL
end

#write(buffer, offset) ⇒ Object



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

def write(buffer, offset)
  0
end