Constructors
constructor
- new Trie(lastModified?: Date): Trie
-
Parameters
-
Default value lastModified: Date = new Date()
Properties
size
size: number = 0
Methods
add
- add(key: string, ref: string): void
-
Parameters
Returns void
search
- search(query: string): string[]
-
Parameters
Returns string[]
shouldReindex
- shouldReindex(lastModified: Date, numberOfNotes: number): boolean
-
Parameters
-
lastModified: Date
-
numberOfNotes: number
Returns boolean
Static add
- add(trie: Trie, key: string, ref: string): void
-
Parameters
Returns void
Static buildTrie
- buildTrie(notes: {}, date?: Date): Trie
-
Parameters
-
notes: {}
-
[internalRef: string]: Note
-
Default value date: Date = new Date()
Static search
- search(trie: Trie, query: string): string[]
-
Parameters
Returns string[]
Static shouldReindex
- shouldReindex(trie: Trie, lastModified: Date, numberOfNotes: number): boolean
-
Parameters
-
-
lastModified: Date
-
numberOfNotes: number
Returns boolean
Use static methods instead