Class: ArrowFormat::LargeBinaryType
- Inherits:
-
VariableSizeBinaryType
- Object
- Type
- VariableSizeBinaryType
- ArrowFormat::LargeBinaryType
- Defined in:
- lib/arrow-format/type.rb
Class Method Summary collapse
Instance Method Summary collapse
- #build_array(size, validity_buffer, offsets_buffer, values_buffer) ⇒ Object
- #encoding ⇒ Object
- #name ⇒ Object
- #offset_buffer_type ⇒ Object
- #to_flatbuffers ⇒ Object
Methods inherited from Type
Class Method Details
.singleton ⇒ Object
644 645 646 |
# File 'lib/arrow-format/type.rb', line 644 def singleton @singleton ||= new end |
Instance Method Details
#build_array(size, validity_buffer, offsets_buffer, values_buffer) ⇒ Object
661 662 663 664 665 666 |
# File 'lib/arrow-format/type.rb', line 661 def build_array(size, validity_buffer, offsets_buffer, values_buffer) LargeBinaryArray.new(size, validity_buffer, offsets_buffer, values_buffer) end |
#encoding ⇒ Object
657 658 659 |
# File 'lib/arrow-format/type.rb', line 657 def encoding Encoding::ASCII_8BIT end |
#name ⇒ Object
649 650 651 |
# File 'lib/arrow-format/type.rb', line 649 def name "LargeBinary" end |
#offset_buffer_type ⇒ Object
653 654 655 |
# File 'lib/arrow-format/type.rb', line 653 def offset_buffer_type :s64 # TODO: big endian support end |
#to_flatbuffers ⇒ Object
668 669 670 |
# File 'lib/arrow-format/type.rb', line 668 def to_flatbuffers FB::LargeBinary::Data.new end |