Class: ArrowFormat::LargeBinaryType

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



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

#encodingObject



657
658
659
# File 'lib/arrow-format/type.rb', line 657

def encoding
  Encoding::ASCII_8BIT
end

#nameObject



649
650
651
# File 'lib/arrow-format/type.rb', line 649

def name
  "LargeBinary"
end

#offset_buffer_typeObject



653
654
655
# File 'lib/arrow-format/type.rb', line 653

def offset_buffer_type
  :s64 # TODO: big endian support
end

#to_flatbuffersObject



668
669
670
# File 'lib/arrow-format/type.rb', line 668

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