kafka.utils

Pool

class Pool[K, V] extends Iterable[(K, V)]

Linear Supertypes
Iterable[(K, V)], IterableLike[(K, V), Iterable[(K, V)]], Equals, GenIterable[(K, V)], GenIterableLike[(K, V), Iterable[(K, V)]], Traversable[(K, V)], GenTraversable[(K, V)], GenericTraversableTemplate[(K, V), Iterable], TraversableLike[(K, V), Iterable[(K, V)]], GenTraversableLike[(K, V), Iterable[(K, V)]], Parallelizable[(K, V), ParIterable[(K, V)]], TraversableOnce[(K, V)], GenTraversableOnce[(K, V)], FilterMonadic[(K, V), Iterable[(K, V)]], HasNewBuilder[(K, V), Iterable[(K, V)]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Pool
  2. Iterable
  3. IterableLike
  4. Equals
  5. GenIterable
  6. GenIterableLike
  7. Traversable
  8. GenTraversable
  9. GenericTraversableTemplate
  10. TraversableLike
  11. GenTraversableLike
  12. Parallelizable
  13. TraversableOnce
  14. GenTraversableOnce
  15. FilterMonadic
  16. HasNewBuilder
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Pool(m: Map[K, V])

  2. new Pool(valueFactory: Option[(K) ⇒ V] = scala.None)

Type Members

  1. type Self = Iterable[(K, V)]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

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. def ++[B >: (K, V), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: (K, V), That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike
  6. def ++:[B >: (K, V), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike
  7. def /:[B](z: B)(op: (B, (K, V)) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :\[B](z: B)(op: ((K, V), B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  11. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: B)(seqop: (B, (K, V)) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  17. def clear(): Unit

  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def collect[B, That](pf: PartialFunction[(K, V), B])(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  20. def collectFirst[B](pf: PartialFunction[(K, V), B]): Option[B]

    Definition Classes
    TraversableOnce
  21. def companion: GenericCompanion[Iterable]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  22. def contains(id: K): Boolean

  23. def copyToArray[B >: (K, V)](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  24. def copyToArray[B >: (K, V)](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. def copyToArray[B >: (K, V)](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def copyToBuffer[B >: (K, V)](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  27. def count(p: ((K, V)) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  28. def drop(n: Int): Iterable[(K, V)]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  29. def dropRight(n: Int): Iterable[(K, V)]

    Definition Classes
    IterableLike
  30. def dropWhile(p: ((K, V)) ⇒ Boolean): Iterable[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  31. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  33. def exists(p: ((K, V)) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  34. def filter(p: ((K, V)) ⇒ Boolean): Iterable[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  35. def filterNot(p: ((K, V)) ⇒ Boolean): Iterable[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  36. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  37. def find(p: ((K, V)) ⇒ Boolean): Option[(K, V)]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  38. def flatMap[B, That](f: ((K, V)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  39. def flatten[B](implicit asTraversable: ((K, V)) ⇒ GenTraversableOnce[B]): Iterable[B]

    Definition Classes
    GenericTraversableTemplate
  40. def fold[A1 >: (K, V)](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def foldLeft[B](z: B)(op: (B, (K, V)) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  42. def foldRight[B](z: B)(op: ((K, V), B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  43. def forall(p: ((K, V)) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  44. def foreach[U](f: ((K, V)) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  45. def genericBuilder[B]: Builder[B, Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
  46. def get(key: K): V

  47. def getAndMaybePut(key: K): V

    Gets the value associated with the given key.

    Gets the value associated with the given key. If there is no associated value, then create the value using the pool's value factory and return the value associated with the key. The user should declare the factory method as lazy if its side-effects need to be avoided.

    key

    The key to lookup.

    returns

    The final value associated with the key. This may be different from the value created by the factory if another thread successfully put a value.

  48. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  49. def groupBy[K](f: ((K, V)) ⇒ K): Map[K, Iterable[(K, V)]]

    Definition Classes
    TraversableLike → GenTraversableLike
  50. def grouped(size: Int): Iterator[Iterable[(K, V)]]

    Definition Classes
    IterableLike
  51. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  52. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  53. def head: (K, V)

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  54. def headOption: Option[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  55. def init: Iterable[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  56. def inits: Iterator[Iterable[(K, V)]]

    Definition Classes
    TraversableLike
  57. def isEmpty: Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  58. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  59. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  60. def iterator: Iterator[(K, V)]

    Definition Classes
    Pool → IterableLike → GenIterableLike
  61. def keys: Set[K]

  62. def last: (K, V)

    Definition Classes
    TraversableLike → GenTraversableLike
  63. def lastOption: Option[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  64. def map[B, That](f: ((K, V)) ⇒ B)(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  65. def max[B >: (K, V)](implicit cmp: Ordering[B]): (K, V)

    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. def maxBy[B](f: ((K, V)) ⇒ B)(implicit cmp: Ordering[B]): (K, V)

    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def min[B >: (K, V)](implicit cmp: Ordering[B]): (K, V)

    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. def minBy[B](f: ((K, V)) ⇒ B)(implicit cmp: Ordering[B]): (K, V)

    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  71. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  72. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  73. def newBuilder: Builder[(K, V), Iterable[(K, V)]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  74. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  75. final def notify(): Unit

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

    Definition Classes
    AnyRef
  77. def par: ParIterable[(K, V)]

    Definition Classes
    Parallelizable
  78. def parCombiner: Combiner[(K, V), ParIterable[(K, V)]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  79. def partition(p: ((K, V)) ⇒ Boolean): (Iterable[(K, V)], Iterable[(K, V)])

    Definition Classes
    TraversableLike → GenTraversableLike
  80. def product[B >: (K, V)](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def put(k: K, v: V): V

  82. def putIfNotExists(k: K, v: V): V

  83. def reduce[A1 >: (K, V)](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  84. def reduceLeft[B >: (K, V)](op: (B, (K, V)) ⇒ B): B

    Definition Classes
    TraversableOnce
  85. def reduceLeftOption[B >: (K, V)](op: (B, (K, V)) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  86. def reduceOption[A1 >: (K, V)](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def reduceRight[B >: (K, V)](op: ((K, V), B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  88. def reduceRightOption[B >: (K, V)](op: ((K, V), B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  89. def remove(key: K): V

  90. def repr: Iterable[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  91. def reversed: List[(K, V)]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  92. def sameElements[B >: (K, V)](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  93. def scan[B >: (K, V), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  94. def scanLeft[B, That](z: B)(op: (B, (K, V)) ⇒ B)(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  95. def scanRight[B, That](z: B)(op: ((K, V), B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[(K, V)], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  96. def seq: Iterable[(K, V)]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  97. def size: Int

    Definition Classes
    Pool → GenTraversableLike → TraversableOnce → GenTraversableOnce
  98. def slice(from: Int, until: Int): Iterable[(K, V)]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  99. def sliding(size: Int, step: Int): Iterator[Iterable[(K, V)]]

    Definition Classes
    IterableLike
  100. def sliding(size: Int): Iterator[Iterable[(K, V)]]

    Definition Classes
    IterableLike
  101. def span(p: ((K, V)) ⇒ Boolean): (Iterable[(K, V)], Iterable[(K, V)])

    Definition Classes
    TraversableLike → GenTraversableLike
  102. def splitAt(n: Int): (Iterable[(K, V)], Iterable[(K, V)])

    Definition Classes
    TraversableLike → GenTraversableLike
  103. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  104. def sum[B >: (K, V)](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  106. def tail: Iterable[(K, V)]

    Definition Classes
    TraversableLike → GenTraversableLike
  107. def tails: Iterator[Iterable[(K, V)]]

    Definition Classes
    TraversableLike
  108. def take(n: Int): Iterable[(K, V)]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  109. def takeRight(n: Int): Iterable[(K, V)]

    Definition Classes
    IterableLike
  110. def takeWhile(p: ((K, V)) ⇒ Boolean): Iterable[(K, V)]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  111. def thisCollection: Iterable[(K, V)]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  112. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (K, V), Col[(K, V)]]): Col[(K, V)]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  113. def toArray[B >: (K, V)](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def toBuffer[B >: (K, V)]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def toCollection(repr: Iterable[(K, V)]): Iterable[(K, V)]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  116. def toIndexedSeq: IndexedSeq[(K, V)]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  117. def toIterable: Iterable[(K, V)]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  118. def toIterator: Iterator[(K, V)]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  119. def toList: List[(K, V)]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. def toMap[T, U](implicit ev: <:<[(K, V), (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  121. def toSeq: Seq[(K, V)]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  122. def toSet[B >: (K, V)]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  123. def toStream: Stream[(K, V)]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  124. def toString(): String

    Definition Classes
    TraversableLike → Any
  125. def toTraversable: Traversable[(K, V)]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  126. def toVector: Vector[(K, V)]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  127. def transpose[B](implicit asTraversable: ((K, V)) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  128. def unzip[A1, A2](implicit asPair: ((K, V)) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Definition Classes
    GenericTraversableTemplate
  129. def unzip3[A1, A2, A3](implicit asTriple: ((K, V)) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

    Definition Classes
    GenericTraversableTemplate
  130. def values: Iterable[V]

  131. def view(from: Int, until: Int): IterableView[(K, V), Iterable[(K, V)]]

    Definition Classes
    IterableLike → TraversableLike
  132. def view: IterableView[(K, V), Iterable[(K, V)]]

    Definition Classes
    IterableLike → TraversableLike
  133. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  136. def withFilter(p: ((K, V)) ⇒ Boolean): FilterMonadic[(K, V), Iterable[(K, V)]]

    Definition Classes
    TraversableLike → FilterMonadic
  137. def zip[A1 >: (K, V), B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[(K, V)], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  138. def zipAll[B, A1 >: (K, V), That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[(K, V)], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  139. def zipWithIndex[A1 >: (K, V), That](implicit bf: CanBuildFrom[Iterable[(K, V)], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def /:\[A1 >: (K, V)](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Iterable[(K, V)]

Inherited from IterableLike[(K, V), Iterable[(K, V)]]

Inherited from Equals

Inherited from GenIterable[(K, V)]

Inherited from GenIterableLike[(K, V), Iterable[(K, V)]]

Inherited from Traversable[(K, V)]

Inherited from GenTraversable[(K, V)]

Inherited from GenericTraversableTemplate[(K, V), Iterable]

Inherited from TraversableLike[(K, V), Iterable[(K, V)]]

Inherited from GenTraversableLike[(K, V), Iterable[(K, V)]]

Inherited from Parallelizable[(K, V), ParIterable[(K, V)]]

Inherited from TraversableOnce[(K, V)]

Inherited from GenTraversableOnce[(K, V)]

Inherited from FilterMonadic[(K, V), Iterable[(K, V)]]

Inherited from HasNewBuilder[(K, V), Iterable[(K, V)]]

Inherited from AnyRef

Inherited from Any

Ungrouped