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

Method setup

c_glib/test/test-record-batch-reader.rb:22–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 include Helper::Omittable
21
22 def setup
23 fields = [
24 Arrow::Field.new("visible", Arrow::BooleanDataType.new),
25 Arrow::Field.new("point", Arrow::Int32DataType.new),
26 ]
27 @schema = Arrow::Schema.new(fields)
28 @record_batches = [
29 [
30 build_boolean_array([true, false, true]),
31 build_int32_array([1, 2, 3]),
32 ],
33 [
34 build_boolean_array([false, true, false, true]),
35 build_int32_array([-1, -2, -3, -4]),
36 ]
37 ].collect do |columns|
38 Arrow::RecordBatch.new(@schema, columns[0].length, columns)
39 end
40 @reader = Arrow::RecordBatchReader.new(@record_batches, @schema)
41 end
42
43 def test_export
44 require_gi_bindings(3, 4, 8)

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected