File tree 2 files changed +712
-669
lines changed
packages/database/src/core/view 2 files changed +712
-669
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { IndexedFilter } from './filter/IndexedFilter' ;
19
- import { ViewProcessor } from './ViewProcessor' ;
19
+ import {
20
+ newViewProcessor ,
21
+ ViewProcessor ,
22
+ viewProcessorApplyOperation ,
23
+ viewProcessorAssertIndexed
24
+ } from './ViewProcessor' ;
20
25
import { ChildrenNode } from '../snap/ChildrenNode' ;
21
26
import { CacheNode } from './CacheNode' ;
22
27
import {
@@ -62,7 +67,7 @@ export class View {
62
67
const indexFilter = new IndexedFilter ( params . getIndex ( ) ) ;
63
68
const filter = queryParamsGetNodeFilter ( params ) ;
64
69
65
- this . processor_ = new ViewProcessor ( filter ) ;
70
+ this . processor_ = newViewProcessor ( filter ) ;
66
71
67
72
const initialServerCache = initialViewCache . serverCache ;
68
73
const initialEventCache = initialViewCache . eventCache ;
@@ -204,13 +209,14 @@ export function viewApplyOperation(
204
209
}
205
210
206
211
const oldViewCache = view . viewCache_ ;
207
- const result = view . processor_ . applyOperation (
212
+ const result = viewProcessorApplyOperation (
213
+ view . processor_ ,
208
214
oldViewCache ,
209
215
operation ,
210
216
writesCache ,
211
217
completeServerCache
212
218
) ;
213
- view . processor_ . assertIndexed ( result . viewCache ) ;
219
+ viewProcessorAssertIndexed ( view . processor_ , result . viewCache ) ;
214
220
215
221
assert (
216
222
result . viewCache . serverCache . isFullyInitialized ( ) ||
You can’t perform that action at this time.
0 commit comments