An index backed by a BTree (from the sorted-btree package).

Stores the elements in a sorted order, and allows efficient queries for equality, range and max/min.

Memory footprint: O(n * log(n))

Type Parameters

  • In extends number | string

  • Out

Hierarchy

  • Index<In, Out>
    • BTreeIndex

Constructors

Properties

ix: default<string | number, IdSet> = ...

Methods

  • Returns at most limit items that is between minValue and maxValue (inclusive).

    Complexity: O(log(n) + limit)

    Parameters

    • p: {
          limit?: number;
          maxValue: In;
          minValue: In;
      }
      • Optional limit?: number
      • maxValue: In
      • minValue: In

    Returns Item<Out>[]

Generated using TypeDoc