* 设置实体列表并重建索引 * * 当实体集合发生大规模变化时调用此方法。 * 系统将重新构建所有索引以确保查询性能。 * * @param entities 新的实体列表
(entities: Entity[])
| 88 | * @param entities 新的实体列表 |
| 89 | */ |
| 90 | public setEntities(entities: Entity[]): void { |
| 91 | this._entities = entities; |
| 92 | this.clearQueryCache(); |
| 93 | this.clearReactiveQueries(); |
| 94 | this.rebuildIndexes(); |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * 添加单个实体到查询系统 |
no test coverage detected