Class: ArrowFormat::SparseUnionType

Inherits:
UnionType show all
Defined in:
lib/arrow-format/type.rb

Instance Attribute Summary

Attributes inherited from UnionType

#children, #type_ids

Instance Method Summary collapse

Methods inherited from UnionType

#resolve_type_index, #to_flatbuffers, #to_s

Methods inherited from Type

#to_s

Constructor Details

#initialize(children, type_ids) ⇒ SparseUnionType

Returns a new instance of SparseUnionType.



1008
1009
1010
# File 'lib/arrow-format/type.rb', line 1008

def initialize(children, type_ids)
  super(:sparse, children, type_ids)
end

Instance Method Details

#build_array(size, types_buffer, children) ⇒ Object



1016
1017
1018
# File 'lib/arrow-format/type.rb', line 1016

def build_array(size, types_buffer, children)
  SparseUnionArray.new(self, size, types_buffer, children)
end

#nameObject



1012
1013
1014
# File 'lib/arrow-format/type.rb', line 1012

def name
  "SparseUnion"
end