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

Constructor Details

#initializeNullValue

:nodoc:



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

def initialize
  self
end

Instance Method Details

#estimate_sizeObject



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

def estimate_size
  0
end

#getObject



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

def get
  nil
end

#pack(packer) ⇒ Object



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

def pack(packer)
  packer.write_nil
end

#to_bytesObject



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

def to_bytes
  ''
end

#to_sObject



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

def to_s
  ''
end

#typeObject



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

def type
  Aerospike::ParticleType::NULL
end

#write(buffer, offset) ⇒ Object



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

def write(buffer, offset)
  0
end