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

Method pack

ruby/red-arrow/lib/arrow/chunked-array.rb:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 end
114
115 def pack
116 first_chunk = chunks.first
117 data_type = first_chunk.value_data_type
118 case data_type
119 when TimestampDataType
120 builder = TimestampArrayBuilder.new(data_type)
121 builder.build(to_a)
122 else
123 first_chunk.class.new(to_a)
124 end
125 end
126
127 def count(options: nil)
128 compute("count", options: options).value

Callers

nothing calls this directly

Calls 3

value_data_typeMethod · 0.45
newMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected