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

Method MakeBuilder

cpp/src/arrow/json/parser.cc:472–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470 /// construct a builder of statically defined kind
471 template <Kind::type kind>
472 Status MakeBuilder(int64_t leading_nulls, BuilderPtr* builder) {
473 builder->index = static_cast<uint32_t>(arena<kind>().size());
474 builder->kind = kind;
475 builder->nullable = true;
476 arena<kind>().emplace_back(RawArrayBuilder<kind>(&context_));
477 return Cast<kind>(*builder)->AppendNull(leading_nulls);
478 }
479
480 /// construct a builder of whatever kind corresponds to a DataType
481 Status MakeBuilder(const DataType& t, int64_t leading_nulls, BuilderPtr* builder) {

Callers 1

InitializeMethod · 0.45

Calls 14

BuilderPtrClass · 0.85
emplace_backMethod · 0.80
nullableMethod · 0.80
OKFunction · 0.70
MakeBuilderFunction · 0.50
NotImplementedFunction · 0.50
sizeMethod · 0.45
AppendNullMethod · 0.45
value_typeMethod · 0.45
value_builderMethod · 0.45
fieldsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected