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

Method MakeData

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

Source from the content-addressed store, hash-verified

3238
3239 template <size_t BYTE_WIDTH = 16>
3240 void MakeData(const DecimalVector& input, std::vector<uint8_t>* out) const {
3241 out->reserve(input.size() * BYTE_WIDTH);
3242
3243 for (const auto& value : input) {
3244 auto bytes = value.ToBytes();
3245 out->insert(out->end(), bytes.cbegin(), bytes.cend());
3246 }
3247 }
3248
3249 template <size_t BYTE_WIDTH = 16>
3250 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