Packages

c

com.microsoft.azure.synapse.ml.nn

BoundedPriorityQueue

class BoundedPriorityQueue[A] extends Iterable[A] with Growable[A] with Serializable

Bounded priority queue. This class wraps the original PriorityQueue class and modifies it such that only the top K elements are retained. The top K elements are defined by an implicit Ordering[A].

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BoundedPriorityQueue
  2. Serializable
  3. Growable
  4. Clearable
  5. Iterable
  6. IterableLike
  7. Equals
  8. GenIterable
  9. GenIterableLike
  10. Traversable
  11. GenTraversable
  12. GenericTraversableTemplate
  13. TraversableLike
  14. GenTraversableLike
  15. Parallelizable
  16. TraversableOnce
  17. GenTraversableOnce
  18. FilterMonadic
  19. HasNewBuilder
  20. AnyRef
  21. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BoundedPriorityQueue(maxSize: Int)(implicit ord: Ordering[A])

Type Members

  1. type Self = Iterable[A]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]
    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  4. def ++:[B >: A, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike
  5. def ++:[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike
  6. def ++=(xs: TraversableOnce[A]): BoundedPriorityQueue.this.type
    Definition Classes
    BoundedPriorityQueue → Growable
  7. def +=(elem1: A, elem2: A, elems: A*): BoundedPriorityQueue.this.type
    Definition Classes
    BoundedPriorityQueue → Growable
  8. def +=(elem: A): BoundedPriorityQueue.this.type
    Definition Classes
    BoundedPriorityQueue → Growable
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  11. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  13. def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def canEqual(that: Any): Boolean
    Definition Classes
    IterableLike → Equals
  16. def clear(): Unit
    Definition Classes
    BoundedPriorityQueue → Growable → Clearable
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  19. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
    Definition Classes
    TraversableOnce
  20. def companion: GenericCompanion[Iterable]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  21. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  22. def copyToArray[B >: A](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToArray[B >: A](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. def copyToBuffer[B >: A](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  25. def count(p: (A) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def drop(n: Int): Iterable[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  27. def dropRight(n: Int): Iterable[A]
    Definition Classes
    IterableLike
  28. def dropWhile(p: (A) ⇒ Boolean): Iterable[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  31. def exists(p: (A) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  32. def filter(p: (A) ⇒ Boolean): Iterable[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  33. def filterNot(p: (A) ⇒ Boolean): Iterable[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  34. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def find(p: (A) ⇒ Boolean): Option[A]
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  36. def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  37. def flatten[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): Iterable[B]
    Definition Classes
    GenericTraversableTemplate
  38. def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def foldRight[B](z: B)(op: (A, B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  41. def forall(p: (A) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  42. def foreach[U](f: (A) ⇒ U): Unit
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  43. def genericBuilder[B]: Builder[B, Iterable[B]]
    Definition Classes
    GenericTraversableTemplate
  44. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  45. def groupBy[K](f: (A) ⇒ K): Map[K, Iterable[A]]
    Definition Classes
    TraversableLike → GenTraversableLike
  46. def grouped(size: Int): Iterator[Iterable[A]]
    Definition Classes
    IterableLike
  47. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  48. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def head: A
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  50. def headOption: Option[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  51. def init: Iterable[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  52. def inits: Iterator[Iterable[A]]
    Definition Classes
    TraversableLike
  53. def isEmpty: Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  54. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  55. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  56. def iterator: Iterator[A]
    Definition Classes
    BoundedPriorityQueue → IterableLike → GenIterableLike
  57. def last: A
    Definition Classes
    TraversableLike → GenTraversableLike
  58. def lastOption: Option[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  59. def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  60. def max[B >: A](implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def min[B >: A](implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  68. def newBuilder: Builder[A, Iterable[A]]
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  69. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  71. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  72. def par: ParIterable[A]
    Definition Classes
    Parallelizable
  73. def parCombiner: Combiner[A, ParIterable[A]]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  74. def partition(p: (A) ⇒ Boolean): (Iterable[A], Iterable[A])
    Definition Classes
    TraversableLike → GenTraversableLike
  75. def product[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def reduceLeft[B >: A](op: (B, A) ⇒ B): B
    Definition Classes
    TraversableOnce
  78. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduceRight[B >: A](op: (A, B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  81. def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def repr: Iterable[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  83. def reversed: List[A]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  84. def sameElements[B >: A](that: GenIterable[B]): Boolean
    Definition Classes
    IterableLike → GenIterableLike
  85. def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  86. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Iterable[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  87. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[A], 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.

  88. def seq: Iterable[A]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  89. def size: Int
    Definition Classes
    BoundedPriorityQueue → GenTraversableLike → TraversableOnce → GenTraversableOnce
  90. def sizeHintIfCheap: Int
    Attributes
    protected[collection]
    Definition Classes
    GenTraversableOnce
  91. def slice(from: Int, until: Int): Iterable[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  92. def sliding(size: Int, step: Int): Iterator[Iterable[A]]
    Definition Classes
    IterableLike
  93. def sliding(size: Int): Iterator[Iterable[A]]
    Definition Classes
    IterableLike
  94. def span(p: (A) ⇒ Boolean): (Iterable[A], Iterable[A])
    Definition Classes
    TraversableLike → GenTraversableLike
  95. def splitAt(n: Int): (Iterable[A], Iterable[A])
    Definition Classes
    TraversableLike → GenTraversableLike
  96. def stringPrefix: String
    Definition Classes
    TraversableLike → GenTraversableLike
  97. def sum[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  99. def tail: Iterable[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  100. def tails: Iterator[Iterable[A]]
    Definition Classes
    TraversableLike
  101. def take(n: Int): Iterable[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  102. def takeRight(n: Int): Iterable[A]
    Definition Classes
    IterableLike
  103. def takeWhile(p: (A) ⇒ Boolean): Iterable[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  104. def thisCollection: Iterable[A]
    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  105. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  106. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toBuffer[B >: A]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def toCollection(repr: Iterable[A]): Iterable[A]
    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  109. def toIndexedSeq: IndexedSeq[A]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def toIterable: Iterable[A]
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  111. def toIterator: Iterator[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  112. def toList: List[A]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def toSeq: Seq[A]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def toSet[B >: A]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. def toStream: Stream[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  117. def toString(): String
    Definition Classes
    TraversableLike → Any
  118. def toTraversable: Traversable[A]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  119. def toVector: Vector[A]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. def transpose[B](implicit asTraversable: (A) ⇒ 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.

  121. def unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
    Definition Classes
    GenericTraversableTemplate
  122. def unzip3[A1, A2, A3](implicit asTriple: (A) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
    Definition Classes
    GenericTraversableTemplate
  123. def view(from: Int, until: Int): IterableView[A, Iterable[A]]
    Definition Classes
    IterableLike → TraversableLike
  124. def view: IterableView[A, Iterable[A]]
    Definition Classes
    IterableLike → TraversableLike
  125. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  126. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  127. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  128. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Iterable[A]]
    Definition Classes
    TraversableLike → FilterMonadic
  129. def zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[A], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  130. def zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[A], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  131. def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Iterable[A], (A1, Int), That]): That
    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, A) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldLeft instead of /:

  2. def :\[B](z: B)(op: (A, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldRight instead of :\

Inherited from Serializable

Inherited from Growable[A]

Inherited from Clearable

Inherited from Iterable[A]

Inherited from IterableLike[A, Iterable[A]]

Inherited from Equals

Inherited from GenIterable[A]

Inherited from GenIterableLike[A, Iterable[A]]

Inherited from Traversable[A]

Inherited from GenTraversable[A]

Inherited from TraversableLike[A, Iterable[A]]

Inherited from GenTraversableLike[A, Iterable[A]]

Inherited from Parallelizable[A, ParIterable[A]]

Inherited from TraversableOnce[A]

Inherited from GenTraversableOnce[A]

Inherited from FilterMonadic[A, Iterable[A]]

Inherited from HasNewBuilder[A, Iterable[A] @scala.annotation.unchecked.uncheckedVariance]

Inherited from AnyRef

Inherited from Any

Ungrouped