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

Method MakeExample1

cpp/src/arrow/table_test.cc:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45class TestTable : public ::testing::Test {
46 public:
47 void MakeExample1(int length) {
48 auto f0 = field("f0", int32());
49 auto f1 = field("f1", uint8());
50 auto f2 = field("f2", int16());
51
52 std::vector<std::shared_ptr<Field>> fields = {f0, f1, f2};
53 schema_ = std::make_shared<Schema>(fields);
54
55 arrays_ = {gen_.ArrayOf(int32(), length), gen_.ArrayOf(uint8(), length),
56 gen_.ArrayOf(int16(), length)};
57
58 columns_ = {std::make_shared<ChunkedArray>(arrays_[0]),
59 std::make_shared<ChunkedArray>(arrays_[1]),
60 std::make_shared<ChunkedArray>(arrays_[2])};
61 }
62
63 protected:
64 random::RandomArrayGenerator gen_{42};

Callers

nothing calls this directly

Calls 2

fieldFunction · 0.70
ArrayOfMethod · 0.45

Tested by

no test coverage detected