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

Method AppendValues

cpp/src/parquet/test_util.h:329–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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