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

Method AppendScalar

cpp/src/arrow/array/builder_base.cc:337–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335} // namespace
336
337Status ArrayBuilder::AppendScalar(const Scalar& scalar, int64_t n_repeats) {
338 if (!scalar.type->Equals(type())) {
339 return Status::Invalid("Cannot append scalar of type ", scalar.type->ToString(),
340 " to builder for type ", type()->ToString());
341 }
342 return AppendScalarImpl<const Scalar*>{&scalar, &scalar + 1, n_repeats, this}.Convert();
343}
344
345Status ArrayBuilder::AppendScalars(const ScalarVector& scalars) {
346 if (scalars.empty()) return Status::OK();

Callers 15

FinalizeMethod · 0.45
AppendMethod · 0.45
AppendMethod · 0.45
AppendMethod · 0.45
AppendMethod · 0.45
AppendMethod · 0.45
AppendMethod · 0.45
AppendMethod · 0.45
AppendScalarFunction · 0.45
TESTFunction · 0.45
BuildZeroPrimitiveArrayFunction · 0.45
TEST_FFunction · 0.45

Calls 5

typeFunction · 0.70
InvalidFunction · 0.50
EqualsMethod · 0.45
ToStringMethod · 0.45
ConvertMethod · 0.45

Tested by 5

TESTFunction · 0.36
BuildZeroPrimitiveArrayFunction · 0.36
TEST_FFunction · 0.36
AssertAppendScalarFunction · 0.36
TEST_PFunction · 0.36