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

Function AppendNumeric

cpp/src/arrow/testing/fixed_width_test_util.cc:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace {
33template <typename ArrowType>
34inline Status AppendNumeric(ArrayBuilder* builder, int64_t* next_value) {
35 using NumericBuilder = ::arrow::NumericBuilder<ArrowType>;
36 using value_type = typename NumericBuilder::value_type;
37 auto* numeric_builder = ::arrow::internal::checked_cast<NumericBuilder*>(builder);
38 auto cast_next_value =
39 static_cast<value_type>(*next_value % std::numeric_limits<value_type>::max());
40 RETURN_NOT_OK(numeric_builder->Append(cast_next_value));
41 *next_value += 1;
42 return Status::OK();
43}
44} // namespace
45
46std::shared_ptr<DataType> NestedListGenerator::NestedFSLType(

Callers

nothing calls this directly

Calls 2

OKFunction · 0.50
AppendMethod · 0.45

Tested by

no test coverage detected