Removes all key/value pairs from the IMap object.
Returns true if an element in the map object existed and has been removed, or false if the element did not exist.
Removes a range of key-value pairs from the B+ tree.
The number of key-value pairs that were deleted.
Calls callbackFn once for each key-value pair present in the map object. The ES6 Map class sends the value to the callback before the key, so this interface must do likewise.
OptionalthisArg: anyCalls callback on the specified range of keys, in ascending order by key.
The first key scanned will be greater than or equal to low.
Scanning stops when a key larger than this is reached.
If the high key is present in the map, onFound is called
for that final pair if and only if this parameter is true.
OptionalonFound: (k: K, v: V, counter: number) => void
A function that is called for each key-value pair.
OptionalinitialCounter: number
Initial third argument of onFound. This value
increases by one each time onFound is called. Default: 0
Number of pairs found and the number of times callback was called.
Builds an array of pairs from the specified range of keys, sorted by key. Each returned pair is also an array: pair[0] is the key, pair[1] is the value.
The first key in the array will be greater than or equal to low.
This method returns when a key larger than this is reached.
OptionalincludeHigh: boolean
If the high key is present in the map, its pair will be
included in the output if and only if this parameter is true. Note:
if the low key is present, it is always included in the output.
OptionalmaxLength: number
Maximum length of the returned array (default: unlimited)
Returns a boolean asserting whether the key exists in the map object or not.
Gets the highest key in the collection.
Gets the lowest key in the collection.
Adds or overwrites a key-value pair in the sorted map.
the key is used to determine the sort order of data in the tree.
data to associate with the key
Optionaloverwrite: boolean
Whether to overwrite an existing key-value pair (default: true). If this is false and there is an existing key-value pair then the call to this method has no effect.
true if a new key-value pair was added, false if the key already existed.
Adds all pairs from a list of key-value pairs.
Pairs to add to this tree. If there are duplicate keys, later pairs currently overwrite earlier ones (e.g. [[0,1],[0,7]] associates 0 with 7.)
Optionaloverwrite: boolean
Whether to overwrite pairs that already exist (if false, pairs[i] is ignored when the key pairs[i][0] already exists.)
The number of pairs added to the collection.
An interface for a sorted map (dictionary), not including functional/persistent methods.