implicit class CustomParallelismSCollection[T] extends AnyRef
Enhanced version of SCollection with custom
parallelism, where parallelism
is the number of concurrent DoFn
threads per worker (default
to number of CPU cores).
- Alphabetic
- By Inheritance
- CustomParallelismSCollection
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CustomParallelismSCollection(self: SCollection[T])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def collectWithParallelism[U](parallelism: Int)(pfn: PartialFunction[T, U])(implicit arg0: Coder[U]): SCollection[U]
Filter the elements for which the given
PartialFunction
is defined, and then map.Filter the elements for which the given
PartialFunction
is defined, and then map.parallelism
is the number of concurrentDoFn
s per worker. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filterWithParallelism(parallelism: Int)(fn: (T) => Boolean): SCollection[T]
Return a new SCollection containing only the elements that satisfy a predicate.
Return a new SCollection containing only the elements that satisfy a predicate.
parallelism
is the number of concurrentDoFn
s per worker. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMapWithParallelism[U](parallelism: Int)(fn: (T) => TraversableOnce[U])(implicit arg0: Coder[U]): SCollection[U]
Return a new SCollection by first applying a function to all elements of this SCollection, and then flattening the results.
Return a new SCollection by first applying a function to all elements of this SCollection, and then flattening the results.
parallelism
is the number of concurrentDoFn
s per worker. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapWithParallelism[U](parallelism: Int)(fn: (T) => U)(implicit arg0: Coder[U]): SCollection[U]
Return a new SCollection by applying a function to all elements of this SCollection.
Return a new SCollection by applying a function to all elements of this SCollection.
parallelism
is the number of concurrentDoFn
s per worker. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()