Class: ArrowFormat::BooleanType

Inherits:
PrimitiveType 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



49
50
51
# File 'lib/arrow-format/type.rb', line 49

def singleton
  @singleton ||= new
end

Instance Method Details

#build_array(size, validity_buffer, values_buffer) ⇒ Object



58
59
60
# File 'lib/arrow-format/type.rb', line 58

def build_array(size, validity_buffer, values_buffer)
  BooleanArray.new(size, validity_buffer, values_buffer)
end

#nameObject



54
55
56
# File 'lib/arrow-format/type.rb', line 54

def name
  "Boolean"
end

#to_flatbuffersObject



62
63
64
# File 'lib/arrow-format/type.rb', line 62

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