Class TableIndex
Accessors
built
-
get built(): number
how many field indexes have been built
Returns number
entries
-
get entries(): number
how many entries the built indexes hold, across every field
Returns number
Constructors
constructor
-
Parameters
- keys: readonly string[]
- rows: ReadonlyMap<string, Plain>
Returns TableIndex
Methods
clean
equal
-
the keys whose
fieldequals one ofvalues, ascendingParameters
- field: string
- values: readonly (string | number)[]
Returns string[]
prefix
-
the keys whose
fieldstarts withtext, ascendingParameters
- field: string
- fold: "ascii" | undefined
- text: string
Returns string[]
range
-
the keys whose
fieldis at least or at mostvalue, within the value's type, ascendingParameters
- field: string
- op: "gte" | "lte"
- value: string | number
Returns string[]
Lazy per-field indexes over one table. Each index is built on first use and is only an optimisation: a plan gives the same answer with or without one.