Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Trie

Index

Constructors

constructor

  • new Trie(lastModified?: Date): Trie
  • Parameters

    • Default value lastModified: Date = new Date()

    Returns Trie

Properties

size

size: number = 0

Methods

add

  • add(key: string, ref: string): void
  • deprecated

    Use static methods instead

    Parameters

    • key: string
    • ref: string

    Returns void

search

  • search(query: string): string[]
  • deprecated

    Use static methods instead

    Parameters

    • query: string

    Returns string[]

shouldReindex

  • shouldReindex(lastModified: Date, numberOfNotes: number): boolean
  • deprecated

    Use static methods instead

    Parameters

    • lastModified: Date
    • numberOfNotes: number

    Returns boolean

Static add

  • add(trie: Trie, key: string, ref: string): void
  • Parameters

    • trie: Trie
    • key: string
    • ref: string

    Returns void

Static buildTrie

  • buildTrie(notes: {}, date?: Date): Trie
  • Parameters

    • notes: {}
      • [internalRef: string]: Note
    • Default value date: Date = new Date()

    Returns Trie

Static search

  • search(trie: Trie, query: string): string[]
  • Parameters

    • trie: Trie
    • query: string

    Returns string[]

Static shouldReindex

  • shouldReindex(trie: Trie, lastModified: Date, numberOfNotes: number): boolean
  • Parameters

    • trie: Trie
    • lastModified: Date
    • numberOfNotes: number

    Returns boolean

Generated using TypeDoc