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

Function AppendValues

cpp/src/arrow/ipc/test_common.cc:1038–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036
1037template <typename BuilderType, typename T>
1038static void AppendValues(const std::vector<bool>& is_valid, const std::vector<T>& values,
1039 BuilderType* builder) {
1040 for (size_t i = 0; i < values.size(); ++i) {
1041 if (is_valid[i]) {
1042 ASSERT_OK(builder->Append(values[i]));
1043 } else {
1044 ASSERT_OK(builder->AppendNull());
1045 }
1046 }
1047}
1048
1049Status MakeFWBinary(std::shared_ptr<RecordBatch>* out) {
1050 std::vector<bool> is_valid = {true, true, true, false};

Callers 1

MakeFWBinaryFunction · 0.70

Calls 3

sizeMethod · 0.45
AppendMethod · 0.45
AppendNullMethod · 0.45

Tested by

no test coverage detected