Class: ArrowFormat::NullType

Inherits:
Type
  • Object
show all
Defined in:
lib/arrow-format/type.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#to_s

Class Method Details

.singletonObject



26
27
28
# File 'lib/arrow-format/type.rb', line 26

def singleton
  @singleton ||= new
end

Instance Method Details

#build_array(size) ⇒ Object



35
36
37
# File 'lib/arrow-format/type.rb', line 35

def build_array(size)
  NullArray.new(size)
end

#nameObject



31
32
33
# File 'lib/arrow-format/type.rb', line 31

def name
  "Null"
end

#to_flatbuffersObject



39
40
41
# File 'lib/arrow-format/type.rb', line 39

def to_flatbuffers
  FB::Null::Data.new
end