_defAddHash
private
void
_defAddHash
(
)
Updates all hash tables when a record is added to the recordset
_defRemoveHash
private
void
_defRemoveHash
(
)
Updates all hash tables when a record is removed from the recordset
_defUpdateHash
private
void
_defUpdateHash
(
)
Updates all hash tables when the recordset is updated (a combination of add and remove)
_setHashTable
private
object
_setHashTable
(
key
)
Setup the hash table for a given key with all existing records in the recordset
- Parameters:
-
key <string>
A key to hash by.
- Returns:
object
- obj The created hash table
createTable
object
createTable
(
key
)
Creates a new hash table.
- Parameters:
-
key <string>
A key to hash by.
- Returns:
object
- tbls[key] The created hash table
getTable
object
getTable
(
key
)
Get a hash table that hashes records by a given key.
- Parameters:
-
key <string>
A key to hash by.
- Returns:
object
- table The created hash table