Class: Aerospike::NullValue

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

Overview

Empty value.

Constant Summary

Constants inherited from Value

Value::INTEGER_RANGE

Instance Method Summary collapse

Methods inherited from Value

of

Constructor Details

#initializeNullValue

:nodoc:



65
66
67
# File 'lib/aerospike/value/value.rb', line 65

def initialize
  self
end

Instance Method Details

#estimate_sizeObject



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

def estimate_size
  0
end

#getObject



73
74
75
# File 'lib/aerospike/value/value.rb', line 73

def get
  nil
end

#pack(packer) ⇒ Object



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

def pack(packer)
  packer.write_nil
end

#to_bytesObject



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

def to_bytes
  ''
end

#to_sObject



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

def to_s
  ''
end

#typeObject



69
70
71
# File 'lib/aerospike/value/value.rb', line 69

def type
  Aerospike::ParticleType::NULL
end

#write(buffer, offset) ⇒ Object



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

def write(buffer, offset)
  0
end