Packages

c

ch.j3t.prefetcher

PrefetcherLookupHelper

implicit class PrefetcherLookupHelper[K, N, V] extends AnyRef

Implicit class for easing lookups in prefetchers that contain nested maps.

K

outer key type

N

nested key type

V

value type

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PrefetcherLookupHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PrefetcherLookupHelper(a: PrefetchingSupplier[Map[K, Map[N, V]]])

    a

    the instance to do the lookup on

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def getMap(k: K): IO[NotFound, Map[N, V]]

    Lookup a map within a pre-fetched map.

    Lookup a map within a pre-fetched map.

    k

    the (outer) key for the (inner) map to be returned

    returns

    a map contained in the pre-fetched map.

  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def nestedLookup(nestedKey: N)(implicit outerKey: K): IO[NotFound, V]

    Lookup a key in a (nested) map within a pre-fetched map

    Lookup a key in a (nested) map within a pre-fetched map

    nestedKey

    the key within the nested map for which to fetch the mapped value

    outerKey

    the key to access the nested map

    returns

    the nested value after an outerKey -> nestedKey lookup.

  14. def nestedLookups(nestedKeys: Set[N])(implicit outerKey: K): IO[NotFound, Map[N, V]]

    Lookup a set of keyy in a (nested) map within a pre-fetched map

    Lookup a set of keyy in a (nested) map within a pre-fetched map

    nestedKeys

    the keys within the nested map for which to fetch the mapped values

    outerKey

    the key to access the nested map

    returns

    the nested values after an outerKey -> nestedKeys lookups.

    Note

    will return a failure if any of the passed keys does not exist in the nested map

  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped