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

Function AppendValues

cpp/src/arrow/table_builder_test.cc:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55template <typename BuilderType, typename T>
56void AppendValues(BuilderType* builder, const std::vector<T>& values,
57 const std::vector<bool>& is_valid) {
58 for (size_t i = 0; i < values.size(); ++i) {
59 if (is_valid.size() == 0 || is_valid[i]) {
60 ASSERT_OK(builder->Append(values[i]));
61 } else {
62 ASSERT_OK(builder->AppendNull());
63 }
64 }
65}
66
67template <typename ValueType, typename T>
68void AppendList(ListBuilder* builder, const std::vector<std::vector<T>>& values,

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
AppendMethod · 0.45
AppendNullMethod · 0.45

Tested by

no test coverage detected