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:



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

def initialize
  self
end

Instance Method Details

#estimate_sizeObject



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

def estimate_size
  0
end

#getObject



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

def get
  nil
end

#pack(packer) ⇒ Object



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

def pack(packer)
  packer.write_nil
end

#to_bytesObject



120
121
122
# File 'lib/aerospike/value/value.rb', line 120

def to_bytes
  ''
end

#to_sObject



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

def to_s
  ''
end

#typeObject



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

def type
  Aerospike::ParticleType::NULL
end

#write(buffer, offset) ⇒ Object



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

def write(buffer, offset)
  0
end