| 489 | } |
| 490 | |
| 491 | void WritePageIndex() { |
| 492 | if (page_index_builder_ != nullptr) { |
| 493 | // Serialize page index after all row groups have been written and report |
| 494 | // location to the file metadata. |
| 495 | page_index_builder_->Finish(); |
| 496 | auto write_result = page_index_builder_->WriteTo(sink_.get()); |
| 497 | metadata_->SetIndexLocations(IndexKind::kColumnIndex, |
| 498 | write_result.column_index_locations); |
| 499 | metadata_->SetIndexLocations(IndexKind::kOffsetIndex, |
| 500 | write_result.offset_index_locations); |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | void WriteBloomFilter() { |
| 505 | if (bloom_filter_builder_ != nullptr) { |
nothing calls this directly
no test coverage detected