| 506 | } |
| 507 | |
| 508 | void WritePageIndex() { |
| 509 | if (page_index_builder_ != nullptr) { |
| 510 | // Serialize page index after all row groups have been written and report |
| 511 | // location to the file metadata. |
| 512 | page_index_builder_->Finish(); |
| 513 | auto write_result = page_index_builder_->WriteTo(sink_.get()); |
| 514 | metadata_->SetIndexLocations(IndexKind::kColumnIndex, |
| 515 | write_result.column_index_locations); |
| 516 | metadata_->SetIndexLocations(IndexKind::kOffsetIndex, |
| 517 | write_result.offset_index_locations); |
| 518 | } |
| 519 | } |
| 520 | |
| 521 | void WriteBloomFilter() { |
| 522 | if (bloom_filter_builder_ != nullptr) { |
nothing calls this directly
no test coverage detected