MCPcopy Create free account
hub / github.com/apache/arrow / get_value

Method get_value

ruby/red-arrow/lib/arrow/struct-array.rb:26–32  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

24 #
25 # @return [Hash] The `i`-th struct.
26 def get_value(i)
27 value = {}
28 value_data_type.fields.zip(fields) do |field, field_array|
29 value[field.name] = field_array[i]
30 end
31 value
32 end
33
34 # @overload find_field(index)
35 # @param index [Integer] The index of the field to be found.

Callers

nothing calls this directly

Calls 2

fieldsMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected