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

Function BuildArray

cpp/src/arrow/record_batch_test.cc:1268–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1266 typename = std::enable_if_t<is_boolean_type<ArrowType>::value ||
1267 is_number_type<ArrowType>::value>>
1268Result<std::shared_ptr<Array>> BuildArray(
1269 const std::vector<typename TypeTraits<ArrowType>::CType>& values) {
1270 using BuilderType = typename TypeTraits<ArrowType>::BuilderType;
1271 BuilderType builder;
1272 for (const auto& value : values) {
1273 ARROW_RETURN_NOT_OK(builder.Append(value));
1274 }
1275 return builder.Finish();
1276}
1277struct StringBuilderVisitor {
1278 template <typename DataType>
1279 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