* Get statistics for all built indexes.
()
| 459 | * Get statistics for all built indexes. |
| 460 | */ |
| 461 | public statistics(): Record<string, IndexStatistics & { type: string }> { |
| 462 | const stats: Record<string, IndexStatistics & { type: string }> = {}; |
| 463 | |
| 464 | for (const [key, index] of this.#indexes) { |
| 465 | if (this.#built.has(key)) { |
| 466 | stats[key] = { |
| 467 | ...index.statistics(), |
| 468 | type: index.type, |
| 469 | }; |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | return stats; |
| 474 | } |
| 475 | |
| 476 | /** |
| 477 | * Clear all indexes. |
nothing calls this directly
no test coverage detected