@eagleoutice/flowr - v2.13.1
    Preparing search index...

    A transparent, read-only view over several SigDatabase shards described by a SigDbManifest. When the manifest embeds each shard's index (the default), openManifest() reads only that small file to build the package to shard routing table.

    Implements

    Index

    Properties

    baseDir: string

    the directory the manifest's shard/dict paths are relative to

    manifest: SigDbManifest

    Methods

    • The package that OWNS the class className -- an S3 class (a same-named constructor plus a registered method, see LibraryExports.s3Classes) or an S4 class (exported via exportClasses, see LibraryExports.s4Classes); S3 ownership wins a tie. undefined if none does. Without version, backed by a reverse index over every package's latest version, built once and cached.

      Parameters

      • className: string
      • Optionalversion: string

      Returns string | undefined

    • Close every opened shard's file descriptor and drop the in-memory caches (opened shards + shared dictionaries), so the (potentially large) dictionary strings can be reclaimed by the GC. Idempotent.

      Returns void

    • Warm the shards (and their shared dictionaries) needed for pkgs, or everything when omitted. Afterward, the synchronous query methods, for the latest and historical versions, do no I/O or decompression.

      Parameters

      • Optionalpkgs: readonly string[]

      Returns Promise<void>

    • Warm just the shards matching include, e.g., only the current-tier top shards (the base + most-downloaded packages) to speed up common lookups without paying for the long tail or the history shards. See preload.

      Parameters

      Returns Promise<void>

    • the release date of a package version (defaulting to the newest release), or undefined if unknown

      Parameters

      • pkg: string
      • Optionalversion: string

      Returns Date | undefined

    • load (and cache) a shared dictionary's strings by id -- for verification/inspection

      Parameters

      • id: string

      Returns string[]

    • the transitive callees of a function within one package version, expanding the stored local call graphs

      Parameters

      • pkg: string
      • name: string
      • Optionalversion: string

      Returns string[] | undefined