json-fs-query
    Preparing search index...

    Class IndexBuffer

    One index file held in memory while a statement changes it many times: values are found through a Map instead of a search of the whole index each time, and the file is written once at the end (see insertEntity). It holds and changes the index exactly as updateIndex would, one row after another: a new value is added at the end, a file already listed for its value isn't listed twice.

    Index
    entries: indexEntry[]
    • List fileName under value, as updateIndex does.

      Parameters

      • value: any
      • fileName: string

      Returns void

    • Whether a row holds value, as indexHas answers it: an entry for it lists a file (never for null or undefined).

      Parameters

      • value: any

      Returns boolean