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

Function BuildArray

cpp/src/arrow/record_batch_test.cc:1224–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222 typename = std::enable_if_t<is_boolean_type<ArrowType>::value ||
1223 is_number_type<ArrowType>::value>>
1224Result<std::shared_ptr<Array>> BuildArray(
1225 const std::vector<typename TypeTraits<ArrowType>::CType>& values) {
1226 using BuilderType = typename TypeTraits<ArrowType>::BuilderType;
1227 BuilderType builder;
1228 for (const auto& value : values) {
1229 ARROW_RETURN_NOT_OK(builder.Append(value));
1230 }
1231 return builder.Finish();
1232}
1233struct StringBuilderVisitor {
1234 template <typename DataType>
1235 enable_if_t<has_string_view<DataType>::value, Status> Visit(

Callers 2

operator()Method · 0.85
NextBatchMethod · 0.85

Calls 6

default_memory_poolFunction · 0.85
VisitTypeInlineFunction · 0.85
MakeBuilderFunction · 0.70
AppendMethod · 0.45
FinishMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected