ParFlatHashTable
Parallel flat hash table.
Parallel flat hash table.
- Type Params
- T
type of the elements in the table.
Type members
Classlikes
Value members
Concrete methods
Inherited methods
Add elem if not yet in table.
Add elem if not yet in table.
- Returns
Returns
true
if a new elem was added,false
otherwise.- Inherited from
- FlatHashTable
Checks whether an element is contained in the hash table.
Checks whether an element is contained in the hash table.
- Inherited from
- FlatHashTable
Elems have type A, but we store AnyRef in the table. Plus we need to deal with null elems, which need to be stored as NullSentinel
Elems have type A, but we store AnyRef in the table. Plus we need to deal with null elems, which need to be stored as NullSentinel
- Inherited from
- HashUtils
Does the inverse translation of elemToEntry
Does the inverse translation of elemToEntry
- Inherited from
- HashUtils
Finds an entry in the hash table if such an element exists.
Finds an entry in the hash table if such an element exists.
- Inherited from
- FlatHashTable
Initializes the collection from the input stream. f
will be called for each element
read from the input stream in the order determined by the stream. This is useful for
structures where iteration order is important (e.g. LinkedHashSet).
Initializes the collection from the input stream. f
will be called for each element
read from the input stream in the order determined by the stream. This is useful for
structures where iteration order is important (e.g. LinkedHashSet).
The serialization format expected is the one produced by serializeTo
.
- Inherited from
- FlatHashTable
Removes an elem from the hash table returning true if the element was found (and thus removed) or false if it didn't exist.
Removes an elem from the hash table returning true if the element was found (and thus removed) or false if it didn't exist.
- Inherited from
- FlatHashTable
Serializes the collection to the output stream by saving the load factor, collection
size and collection elements. foreach
determines the order in which the elements are saved
to the stream. To deserialize, init
should be used.
Serializes the collection to the output stream by saving the load factor, collection
size and collection elements. foreach
determines the order in which the elements are saved
to the stream. To deserialize, init
should be used.
- Inherited from
- FlatHashTable