JHashMultiMap

scalation.database.JHashMultiMap
class JHashMultiMap[K, V](initialCap: Int, loadFactor: Float)(implicit evidence$1: ClassTag[K], evidence$2: ClassTag[V]) extends Serializable

The JHashMultiMap class provides hash maps that use the Separate Chaining algorithm with several optimizations. It build on Java's HashMap allowing values to multi-valued Set [V] and can be used for building Non-Unique Indices.

Type parameters

K

the type of the keys contained in this hash map

V

the base-type of the values assigned to keys in this hash map

Value parameters

initialCap

the initial hash table size (number of slots)

loadFactor

the load factor (number of keys over number of slots)

Attributes

See also

java.util.HashMap

Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addOne1(elem: (K, V)): hmap.type

Add one key-value pair into this hash map and return this (called by put). The addOne method adds a set of values, whereas addOne1 adds a single value.

Add one key-value pair into this hash map and return this (called by put). The addOne method adds a set of values, whereas addOne1 adds a single value.

Value parameters

elem

the key-value pair to add/insert for an individual value

Attributes

def show(): Unit

Show/print this HashMap.

Show/print this HashMap.

Attributes

Concrete fields

val count: Int