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

Method ReadColumnFully

cpp/src/parquet/column_writer_test.cc:446–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444
445template <typename TestType>
446void TestPrimitiveWriter<TestType>::ReadColumnFully(Compression::type compression,
447 bool page_checksum_verify) {
448 int64_t total_values = static_cast<int64_t>(this->values_out_.size());
449 BuildReader(total_values, compression, page_checksum_verify);
450 values_read_ = 0;
451 while (values_read_ < total_values) {
452 int64_t values_read_recently = 0;
453 reader_->ReadBatch(
454 static_cast<int>(this->values_out_.size()) - static_cast<int>(values_read_),
455 definition_levels_out_.data() + values_read_,
456 repetition_levels_out_.data() + values_read_,
457 this->values_out_ptr_ + values_read_, &values_read_recently);
458 values_read_ += values_read_recently;
459 }
460 this->SyncValuesOut();
461}
462
463template <>
464void TestPrimitiveWriter<Int96Type>::ReadAndCompare(Compression::type compression,

Callers 5

ReadAndCompareMethod · 0.95
ReadAndCompareMethod · 0.95
TEST_FFunction · 0.80
TYPED_TESTFunction · 0.80

Calls 8

BuildReaderFunction · 0.85
SyncValuesOutMethod · 0.80
type_lengthMethod · 0.80
emplace_backMethod · 0.80
sizeMethod · 0.45
ReadBatchMethod · 0.45
dataMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected