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

Method WriteDictionaryPage

cpp/src/parquet/column_writer.cc:1553–1562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551 }
1552
1553 void WriteDictionaryPage() override {
1554 DCHECK(current_dict_encoder_);
1555 std::shared_ptr<ResizableBuffer> buffer = AllocateBuffer(
1556 properties_->memory_pool(), current_dict_encoder_->dict_encoded_size());
1557 current_dict_encoder_->WriteDict(buffer->mutable_data());
1558
1559 DictionaryPage page(buffer, current_dict_encoder_->num_entries(),
1560 properties_->dictionary_page_encoding());
1561 total_bytes_written_ += pager_->WriteDictionaryPage(page);
1562 }
1563
1564 StatisticsPair GetPageStatistics() override {
1565 StatisticsPair result;

Callers

nothing calls this directly

Calls 7

dict_encoded_sizeMethod · 0.80
num_entriesMethod · 0.80
AllocateBufferFunction · 0.70
memory_poolMethod · 0.45
WriteDictMethod · 0.45
mutable_dataMethod · 0.45
WriteDictionaryPageMethod · 0.45

Tested by

no test coverage detected