Class: ArrowFormat::Int64Type

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

Instance Attribute Summary

Attributes inherited from IntType

#bit_width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from IntType

#signed?, #to_flatbuffers

Methods inherited from Type

#to_s

Constructor Details

#initializeInt64Type

Returns a new instance of Int64Type.



241
242
243
# File 'lib/arrow-format/type.rb', line 241

def initialize
  super(64, true)
end

Class Method Details

.singletonObject



236
237
238
# File 'lib/arrow-format/type.rb', line 236

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



249
250
251
# File 'lib/arrow-format/type.rb', line 249

def buffer_type
  :s64
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



253
254
255
# File 'lib/arrow-format/type.rb', line 253

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

#nameObject



245
246
247
# File 'lib/arrow-format/type.rb', line 245

def name
  "Int64"
end