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

Method AppendValues

cpp/src/parquet/test_util.h:331–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330template <>
331inline void DataPageBuilder<BooleanType>::AppendValues(const ColumnDescriptor* d,
332 const std::vector<bool>& values,
333 Encoding::type encoding) {
334 if (encoding != Encoding::PLAIN) {
335 ParquetException::NYI("only plain encoding currently implemented");
336 }
337
338 auto encoder = MakeTypedEncoder<BooleanType>(Encoding::PLAIN, false, d);
339 dynamic_cast<BooleanEncoder*>(encoder.get())
340 ->Put(values, static_cast<int>(values.size()));
341 std::shared_ptr<Buffer> buffer = encoder->FlushValues();
342 PARQUET_THROW_NOT_OK(sink_->Write(buffer->data(), buffer->size()));
343
344 num_values_ = std::max(static_cast<int32_t>(values.size()), num_values_);
345 encoding_ = encoding;
346 have_values_ = true;
347}
348
349template <typename Type>
350static std::shared_ptr<DataPageV1> MakeDataPage(

Callers 15

AppendNdarrayTypedMethod · 0.45
DecodeArrowMethod · 0.45
DecodeArrowMethod · 0.45
DecodeArrowMethod · 0.45
MakeDataPageFunction · 0.45
MakeDictPageFunction · 0.45
NonNullArrayFunction · 0.45
NullableArrayFunction · 0.45
BooleanType>Method · 0.45
MakeArrowFunction · 0.45
TableFromVectorFunction · 0.45

Calls 7

NYIFunction · 0.85
PutMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45
FlushValuesMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected