ox.cads.collection

LvdPWResizeMap

class LvdPWResizeMap[A, B] extends HashMap[A, B]

An implementation of a HashMap based upon "Boosting Multi-Core Reachability Performance with Shared Hash Tables", by Alfons Laarman, Jaco van de Pol and Michael Weber, extended to allow deletion and resizing.

Linear Supertypes
HashMap[A, B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LvdPWResizeMap
  2. HashMap
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LvdPWResizeMap()(implicit arg0: ClassTag[A], arg1: ClassTag[B])

  2. new LvdPWResizeMap(size: Int)(implicit arg0: ClassTag[A], arg1: ClassTag[B])

  3. new LvdPWResizeMap(size: Int, p: Int)(implicit arg0: ClassTag[A], arg1: ClassTag[B])

    size

    the initial size of each shard; this must be a power of 2.

    p

    the number of workers.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val HashMask: Int

    Attributes
    protected
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clear: Unit

    Clear the mapping.

    Clear the mapping.

    Definition Classes
    LvdPWResizeMapHashMap
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def delete(key: A): Unit

    Delete the value associated with key

    Delete the value associated with key

    Definition Classes
    LvdPWResizeMapHashMap
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def getOrElse(key: A, default: ⇒ B): B

    Get the value associated with key k, or default if the key is not in the map.

    Get the value associated with key k, or default if the key is not in the map.

    Definition Classes
    LvdPWResizeMapHashMap
  16. def getOrElseUpdate(key: A, op: ⇒ B): B

    If key is not in the map, initialise it op; otherwise return the value it maps to

    If key is not in the map, initialise it op; otherwise return the value it maps to

    Definition Classes
    LvdPWResizeMapHashMap
  17. def hash(k: A): Int

    A hash value.

    A hash value.

    Attributes
    protected
    Definition Classes
    LvdPWResizeMapHashMap
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def improve(hcode: Int): Int

    Improve the quality of a hash.

    Improve the quality of a hash. Code taken from the code for java.util.concurrent.ConcurrentHashMap

    Attributes
    protected
    Definition Classes
    HashMap
    Annotations
    @inline()
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def update(key: A, datum: B): Unit

    Add key -> data to the mapping, overwriting any previous value there.

    Add key -> data to the mapping, overwriting any previous value there.

    Definition Classes
    LvdPWResizeMapHashMap
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from HashMap[A, B]

Inherited from AnyRef

Inherited from Any

Ungrouped