Class: ArrowFormat::SparseUnionType
- Defined in:
- lib/arrow-format/type.rb
Instance Attribute Summary
Attributes inherited from UnionType
Instance Method Summary collapse
- #build_array(size, types_buffer, children) ⇒ Object
-
#initialize(children, type_ids) ⇒ SparseUnionType
constructor
A new instance of SparseUnionType.
- #name ⇒ Object
Methods inherited from UnionType
#resolve_type_index, #to_flatbuffers, #to_s
Methods inherited from Type
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 |
#name ⇒ Object
1012 1013 1014 |
# File 'lib/arrow-format/type.rb', line 1012 def name "SparseUnion" end |