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

Method MakeData

cpp/src/arrow/array/array_test.cc:3290–3297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3288
3289 template <size_t BYTE_WIDTH = 16>
3290 void MakeData(const DecimalVector& input, std::vector<uint8_t>* out) const {
3291 out->reserve(input.size() * BYTE_WIDTH);
3292
3293 for (const auto& value : input) {
3294 auto bytes = value.ToBytes();
3295 out->insert(out->end(), bytes.cbegin(), bytes.cend());
3296 }
3297 }
3298
3299 template <size_t BYTE_WIDTH = 16>
3300 std::shared_ptr<Array> TestCreate(int32_t precision, const DecimalVector& draw,

Callers

nothing calls this directly

Calls 7

ToBytesMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected