deno.land / x / pg_mem@2.8.1 / transforms / false-filter.ts

false-filter.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { _ISelection, IValue, _Explainer, _SelectExplanation, _Transaction, Stats } from '../interfaces-private.ts';import { FilterBase } from './transform-base.ts';
export class FalseFilter<T = any> extends FilterBase<T> {
get index() { return null; }
entropy() { return 0; }
hasItem() { return false; }
enumerate(): Iterable<T> { return []; }
stats(t: _Transaction): Stats | null { return { count: 0, } }
explain(e: _Explainer): _SelectExplanation { return { id: e.idFor(this), _: 'empty', }; }}
pg_mem

Version Info

Tagged at
4 months ago