Class

fm.lazyseq

BufferedGroupedLazySeq

Related Doc: package lazyseq

Permalink

final class BufferedGroupedLazySeq[+A] extends WithFilterCompat[IndexedSeq[A], LazySeq] with LazySeq[IndexedSeq[A]]

Similar to GroupedLazySeq but allows you to specify a max time to wait before processing the current batch

Self Type
BufferedGroupedLazySeq[A]
Linear Supertypes
LazySeq[IndexedSeq[A]], TraversableOnce[IndexedSeq[A]], WithFilterCompat[IndexedSeq[A], LazySeq], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BufferedGroupedLazySeq
  2. LazySeq
  3. TraversableOnce
  4. WithFilterCompat
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BufferedGroupedLazySeq(iterator: BufferedLazySeqIterator[A], size: Int, timeout: Long, unit: TimeUnit)

    Permalink
  2. new BufferedGroupedLazySeq(self: BufferedLazySeqIterator[A], size: Int, additionalIncrement: (A) ⇒ Int, timeout: Long, unit: TimeUnit)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: IndexedSeq[A]](rest: LazySeq[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def after[U](f: (IndexedSeq[A]) ⇒ U): LazySeq[IndexedSeq[A]]

    Permalink

    Run this function on each item after the foreach function

    Run this function on each item after the foreach function

    This is basically a foreach but without forcing evaluation of this LazySeq.

    Definition Classes
    LazySeq
  6. final def afterWithResource[R, U](resource: Resource[R])(f: (IndexedSeq[A], R) ⇒ U): LazySeq[IndexedSeq[A]]

    Permalink

    Same as after() but takes a Resource (i.e.

    Same as after() but takes a Resource (i.e. can use it for something like logging)

    Definition Classes
    LazySeq
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. final def asTraversableOnce: TraversableOnce[IndexedSeq[A]]

    Permalink
    Definition Classes
    TraversableOnce
  9. final def assertSorted[B >: IndexedSeq[A]](implicit ord: Ordering[B]): LazySeq[B]

    Permalink

    Assert that this reader is in sorted order

    Assert that this reader is in sorted order

    Definition Classes
    LazySeq
  10. final def assertSortedAndUnique[B >: IndexedSeq[A]](implicit ord: Ordering[B]): LazySeq[B]

    Permalink

    Assert that this reader is in sorted order AND unique

    Assert that this reader is in sorted order AND unique

    Definition Classes
    LazySeq
  11. final def assertSortedAndUniqueBy[K](key: (IndexedSeq[A]) ⇒ K)(implicit ord: Ordering[K]): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  12. final def assertSortedBy[K](key: (IndexedSeq[A]) ⇒ K)(implicit ord: Ordering[K]): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  13. final def before[U](f: (IndexedSeq[A]) ⇒ U): LazySeq[IndexedSeq[A]]

    Permalink

    Run this function on each item before the foreach function

    Run this function on each item before the foreach function

    This is basically a foreach but without forcing evaluation of this LazySeq.

    Definition Classes
    LazySeq
  14. final def beforeWithResource[R, U](resource: Resource[R])(f: (IndexedSeq[A], R) ⇒ U): LazySeq[IndexedSeq[A]]

    Permalink

    Same as before() but takes a Resource (i.e.

    Same as before() but takes a Resource (i.e. can use it for something like logging)

    Definition Classes
    LazySeq
  15. final def bucketize[B >: IndexedSeq[A]](num: Int)(implicit serializer: Serializer[B]): Vector[LazySeq[B]]

    Permalink

    Split the LazySeq into num buckets of equal size using a round-robin algorithm

    Split the LazySeq into num buckets of equal size using a round-robin algorithm

    Definition Classes
    LazySeq
  16. final def buffered[B >: IndexedSeq[A]](queue: BlockingQueue[B]): BufferedLazySeq[B]

    Permalink

    Creates an asynchronous buffer that spins up a producer thread which feeds data into a BlockingQueue that is read using the resulting LazySeq.

    Creates an asynchronous buffer that spins up a producer thread which feeds data into a BlockingQueue that is read using the resulting LazySeq. This overload lets you pass in your own BlockingQueue implementation instead of having one created for you.

    Definition Classes
    LazySeq
  17. final def buffered(size: Int): BufferedLazySeq[IndexedSeq[A]]

    Permalink

    Creates an asynchronous buffer that spins up a producer thread which feeds data into a BlockingQueue that is read using the resulting LazySeq.

    Creates an asynchronous buffer that spins up a producer thread which feeds data into a BlockingQueue that is read using the resulting LazySeq. The created BlockingQueue will depend on the size passed in. If the size is <= 0 then a SynchronousQueue otherwise an ArrayBlockingQueue is used.

    Definition Classes
    LazySeq
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  19. final def collapseBy[B >: IndexedSeq[A], K](key: (B) ⇒ K)(op: (B, B) ⇒ B)(implicit ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  20. final def collect[B](pf: PartialFunction[IndexedSeq[A], B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  21. final def copyToArray[B >: IndexedSeq[A]](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    LazySeq
  22. final def drop(n: Int): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  23. final def dropRight(n: Int): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  24. final def dropWhile(p: (IndexedSeq[A]) ⇒ Boolean): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  25. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def exists(p: (IndexedSeq[A]) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    LazySeq
  28. final def filter(p: (IndexedSeq[A]) ⇒ Boolean): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  29. final def filterNot(p: (IndexedSeq[A]) ⇒ Boolean): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  30. final def find(p: (IndexedSeq[A]) ⇒ Boolean): Option[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  31. final def flatMap[B](f: (IndexedSeq[A]) ⇒ TraversableOnce[B])(implicit dummyImplicit: DummyImplicit): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  32. final def flatMap[B](f: (IndexedSeq[A]) ⇒ TraversableOnceOrIterableOnce[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq → WithFilterCompat
  33. final def flatten[B](implicit asTraversable: (IndexedSeq[A]) ⇒ TraversableOnceOrIterableOnce[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  34. def foldLeft[B](z: B)(op: (B, IndexedSeq[A]) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  35. final def forall(p: (IndexedSeq[A]) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    LazySeq
  36. def foreach[U](f: (IndexedSeq[A]) ⇒ U): Unit

    Permalink

    This is the method that sub-classes must implement

    This is the method that sub-classes must implement

    Definition Classes
    BufferedGroupedLazySeqLazySeq → TraversableOnce → WithFilterCompat
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  38. final def groupBy[B >: IndexedSeq[A], K](f: (IndexedSeq[A]) ⇒ K)(implicit serializer: Serializer[B]): Map[K, LazySeq[B]]

    Permalink
    Definition Classes
    LazySeq
  39. final def groupBy[B >: IndexedSeq[A], K](serializer: Serializer[B])(f: (IndexedSeq[A]) ⇒ K): Map[K, LazySeq[B]]

    Permalink

    Mostly standard group by implementation that uses tmp files to store the values of the HashMap

    Mostly standard group by implementation that uses tmp files to store the values of the HashMap

    Definition Classes
    LazySeq
  40. final def grouped[B >: IndexedSeq[A]](size: Int, additionalIncrement: (B) ⇒ Int): LazySeq[IndexedSeq[B]]

    Permalink
    Definition Classes
    LazySeq
  41. final def grouped[B >: IndexedSeq[A]](size: Int): LazySeq[IndexedSeq[B]]

    Permalink
    Definition Classes
    LazySeq
  42. final def groupedBy[K](by: (IndexedSeq[A]) ⇒ K): LazySeq[(K, IndexedSeq[IndexedSeq[A]])]

    Permalink

    A cross between grouped and groupBy that allows you to specify a key to be used (like in groupBy) instead of a fixed count (like in grouped).

    A cross between grouped and groupBy that allows you to specify a key to be used (like in groupBy) instead of a fixed count (like in grouped). All elements next to each other with the same key get returned in each group.

    e.g. LazySeq.wrap(Seq(1,1,1,2,2,1)).groupedBy{ a => a }.toIndexedSeq => Vector((1,Vector(1, 1, 1)), (2,Vector(2, 2)), (1,Vector(1)))

    Definition Classes
    LazySeq
  43. final def hasKnownSize: Boolean

    Permalink
    Definition Classes
    TraversableOnce
  44. final def hasKnownSizeAndIsEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce
  45. final def hasKnownSizeAndIsNonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce
  46. def hasNext: Boolean

    Permalink
  47. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  48. def head: IndexedSeq[A]

    Permalink
    Definition Classes
    BufferedGroupedLazySeqLazySeq
  49. def headOption: Option[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  50. def isEmpty: Boolean

    Permalink
    Definition Classes
    LazySeq
  51. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  52. def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableOnce
  53. object iterator extends LazySeqIterator[IndexedSeq[A]]

    Permalink
  54. def knownSize: Int

    Permalink
    Definition Classes
    LazySeq → TraversableOnce
  55. final def map[B](f: (IndexedSeq[A]) ⇒ B): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq → WithFilterCompat
  56. def max[B >: IndexedSeq[A]](implicit cmp: Ordering[B]): IndexedSeq[A]

    Permalink
    Definition Classes
    TraversableOnce
  57. final def mergeCorresponding[B >: IndexedSeq[A]](that: LazySeq[B])(implicit ord: Ordering[B]): LazySeq[EitherOrBoth[B, B]]

    Permalink
    Definition Classes
    LazySeq
  58. final def mergeCorrespondingByKey[R, K](that: LazySeq[R], thisKey: (IndexedSeq[A]) ⇒ K, thatKey: (R) ⇒ K)(implicit ord: Ordering[K]): LazySeq[EitherOrBoth[IndexedSeq[A], R]]

    Permalink

    Merge corresponding records from this sorted read with that sorted reader given a method to get a common key that can be compared.

    Merge corresponding records from this sorted read with that sorted reader given a method to get a common key that can be compared.

    Definition Classes
    LazySeq
  59. def min[B >: IndexedSeq[A]](implicit ord: Ordering[B]): IndexedSeq[A]

    Permalink
    Definition Classes
    TraversableOnce
  60. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. def next(): IndexedSeq[A]

    Permalink
  62. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  63. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  64. final def onFirst[U](f: (IndexedSeq[A]) ⇒ U): LazySeq[IndexedSeq[A]]

    Permalink

    Execute the method on the first element of the LazySeq whenever it is evaluated.

    Execute the method on the first element of the LazySeq whenever it is evaluated.

    Note: The first element is still call via foreach

    Definition Classes
    LazySeq
  65. final def onLast[U](f: (IndexedSeq[A]) ⇒ U): LazySeq[IndexedSeq[A]]

    Permalink

    Same as onFirst except for the last element whenever it is evaluated

    Same as onFirst except for the last element whenever it is evaluated

    Definition Classes
    LazySeq
  66. final def parFlatMap[B](threads: Int = LazySeq.defaultThreadCount, inputBuffer: Int = LazySeq.defaultThreadCount, resultBuffer: Int = LazySeq.defaultThreadCount * 4)(f: (IndexedSeq[A]) ⇒ TraversableOnceOrIterableOnce[B]): LazySeq[B]

    Permalink

    Performs a parallel flat map maintaining ordered output

    Performs a parallel flat map maintaining ordered output

    Definition Classes
    LazySeq
  67. final def parFlatMap[B](f: (IndexedSeq[A]) ⇒ TraversableOnceOrIterableOnce[B]): LazySeq[B]

    Permalink

    Performs a parallel flat map maintaining ordered output

    Performs a parallel flat map maintaining ordered output

    Definition Classes
    LazySeq
  68. final def parForeach[U](threads: Int = LazySeq.defaultThreadCount, inputBuffer: Int = LazySeq.defaultThreadCount)(f: (IndexedSeq[A]) ⇒ U): Unit

    Permalink

    A Parallel foreach

    A Parallel foreach

    Definition Classes
    LazySeq
  69. final def parForeach[U](f: (IndexedSeq[A]) ⇒ U): Unit

    Permalink

    A Parallel foreach

    A Parallel foreach

    Definition Classes
    LazySeq
  70. final def parMap[B](threads: Int = LazySeq.defaultThreadCount, inputBuffer: Int = LazySeq.defaultThreadCount, resultBuffer: Int = LazySeq.defaultThreadCount * 4)(f: (IndexedSeq[A]) ⇒ B): LazySeq[B]

    Permalink

    Performs a parallel map maintaining ordered output

    Performs a parallel map maintaining ordered output

    Definition Classes
    LazySeq
  71. final def parMap[B](f: (IndexedSeq[A]) ⇒ B): LazySeq[B]

    Permalink

    Performs a parallel map maintaining ordered output

    Performs a parallel map maintaining ordered output

    Definition Classes
    LazySeq
  72. final def partition[B >: IndexedSeq[A]](p: (IndexedSeq[A]) ⇒ Boolean)(implicit serializer: Serializer[B]): (LazySeq[B], LazySeq[B])

    Permalink

    Standard partition implementation using LazySeqs

    Standard partition implementation using LazySeqs

    Definition Classes
    LazySeq
  73. def reduceLeft[B >: IndexedSeq[A]](op: (B, IndexedSeq[A]) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  74. def reduceLeftOption[B >: IndexedSeq[A]](op: (B, IndexedSeq[A]) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  75. final def shuffle[B >: IndexedSeq[A]](implicit serializer: Serializer[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  76. final def shuffle[B >: IndexedSeq[A]](seed: Long)(implicit serializer: Serializer[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  77. final def shuffle[B >: IndexedSeq[A]](random: Random)(implicit serializer: Serializer[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  78. final def slice(from: Int, until: Int): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  79. final def sortAndCollapseBy[B >: IndexedSeq[A], K](bufferSizeLimitMB: Int, bufferRecordLimit: Int)(key: (B) ⇒ K)(op: (B, B) ⇒ B)(implicit serializer: Serializer[B], ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  80. final def sortAndCollapseBy[B >: IndexedSeq[A], K](serializer: Serializer[B], bufferSizeLimitMB: Int, bufferRecordLimit: Int)(key: (B) ⇒ K)(op: (B, B) ⇒ B)(implicit ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  81. final def sortAndCollapseBy[B >: IndexedSeq[A], K](key: (B) ⇒ K)(op: (B, B) ⇒ B)(implicit serializer: Serializer[B], ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  82. final def sortAndCollapseBy[B >: IndexedSeq[A], K](serializer: Serializer[B])(key: (B) ⇒ K)(op: (B, B) ⇒ B)(implicit ord: Ordering[K]): LazySeq[B]

    Permalink

    Collapse elements with the same key by applying a binary operator.

    Collapse elements with the same key by applying a binary operator.

    Should be similar to doing something like: reader.groupBy(key).values.flatMap{ _.reduce(op) }

    Definition Classes
    LazySeq
  83. final def sortBy[B >: IndexedSeq[A], K](bufferSizeLimitMB: Int, bufferRecordLimit: Int)(f: (B) ⇒ K)(implicit serializer: Serializer[B], ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  84. final def sortBy[B >: IndexedSeq[A], K](serializer: Serializer[B], bufferSizeLimitMB: Int, bufferRecordLimit: Int)(f: (B) ⇒ K)(implicit ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  85. final def sortBy[B >: IndexedSeq[A], K](f: (B) ⇒ K)(implicit serializer: Serializer[B], ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  86. final def sortBy[B >: IndexedSeq[A], K](serializer: Serializer[B])(f: (B) ⇒ K)(implicit ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  87. final def sorted[B >: IndexedSeq[A]](bufferSizeLimitMB: Int, bufferRecordLimit: Int)(implicit serializer: Serializer[B], ord: Ordering[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  88. final def sorted[B >: IndexedSeq[A]](implicit serializer: Serializer[B], ord: Ordering[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  89. def sum[B >: IndexedSeq[A]](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce
  90. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  91. final def take(n: Int): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  92. final def takeWhile(p: (IndexedSeq[A]) ⇒ Boolean): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  93. def toArray[B >: IndexedSeq[A]](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce
  94. def toIndexedSeq: IndexedSeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    TraversableOnce
  95. def toIterator(batchSize: Int = 32, bufferSize: Int = 0): LazySeqIterator[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  96. def toIterator: LazySeqIterator[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  97. def toList: List[IndexedSeq[A]]

    Permalink
    Definition Classes
    TraversableOnce
  98. def toSeq: Seq[IndexedSeq[A]]

    Permalink
    Definition Classes
    TraversableOnce
  99. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  100. def toVector: Vector[IndexedSeq[A]]

    Permalink
    Definition Classes
    TraversableOnce
  101. final def unique: LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  102. final def uniqueSortBy[B >: IndexedSeq[A], K](f: (B) ⇒ K)(implicit serializer: Serializer[B], ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  103. final def uniqueSortBy[B >: IndexedSeq[A], K](serializer: Serializer[B])(f: (B) ⇒ K)(implicit ord: Ordering[K]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  104. final def uniqueSorted[B >: IndexedSeq[A]](implicit serializer: Serializer[B], ord: Ordering[B]): LazySeq[B]

    Permalink
    Definition Classes
    LazySeq
  105. final def uniqueUsing[K](f: (IndexedSeq[A]) ⇒ K): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq
  106. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  108. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  109. final def withFilter(p: (IndexedSeq[A]) ⇒ Boolean): LazySeq[IndexedSeq[A]]

    Permalink
    Definition Classes
    LazySeq → WithFilterCompat
  110. final def zipWithIndex: LazySeq[(IndexedSeq[A], Int)]

    Permalink
    Definition Classes
    LazySeq

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from LazySeq[IndexedSeq[A]]

Inherited from TraversableOnce[IndexedSeq[A]]

Inherited from WithFilterCompat[IndexedSeq[A], LazySeq]

Inherited from AnyRef

Inherited from Any

Ungrouped