class ToBuilder[A, Out] extends BoundHandler[A]
A BoundHandler
that adds all inputs to the given builder
, always returning the Continue
signal.
Use the take()
method to obtain the builder's result and clear the builder.
- A
The input event type
- Out
The builder's result type
- Source
- Transformer.scala
- Alphabetic
- By Inheritance
- ToBuilder
- BoundHandler
- HandlerWrite
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ToBuilder(builder: ReusableBuilder[A, Out])
- builder
A ReusableBuilder used as a buffer for inputs received by this handler
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (ToBuilder[A, Out], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (ToBuilder[A, Out]) => Boolean, msg: => Any): ToBuilder[A, Out]
- def ensuring(cond: (ToBuilder[A, Out]) => Boolean): ToBuilder[A, Out]
- def ensuring(cond: Boolean, msg: => Any): ToBuilder[A, Out]
- def ensuring(cond: Boolean): ToBuilder[A, Out]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finish(): Unit
In response to the end of the stream of incoming values, this handler may output any number of final output values to its bound "downstream" receiver.
In response to the end of the stream of incoming values, this handler may output any number of final output values to its bound "downstream" receiver. The expectation is that a Handler's
finish
method will only ever be called once before that Handler is discarded, with the exception ofStateless
Transformers, which act as their own Handlers and will be reused.- Definition Classes
- ToBuilder → BoundHandler
- def formatted(fmtstr: String): String
- 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
- 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()
- def push(out: A): Signal
Handle a single output from the upstream handler, signalling whether or not that upstream should continue emitting values.
Handle a single output from the upstream handler, signalling whether or not that upstream should continue emitting values.
- out
The value from the upstream handler
- returns
A "signal" indicating whether this handler wants to continue receiving inputs afterward
- Definition Classes
- ToBuilder → HandlerWrite
- def pushMany(outs: Iterator[A]): Signal
Convenience for calling
push
multiple times, aborting early if the signal becomesStop
in response to any one push.Convenience for calling
push
multiple times, aborting early if the signal becomesStop
in response to any one push.- outs
An iterator of outputs from the upstream handler, to be pushed into this handler
- returns
A "signal" indicating whether this handler wants to continue receiving inputs afterward
- Definition Classes
- HandlerWrite
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(): Out
Finish the builder by calling its
result()
method, then clear the builder so that subsequent calls topush
will accumulate a new output.Finish the builder by calling its
result()
method, then clear the builder so that subsequent calls topush
will accumulate a new output.- returns
The builder's result before it gets cleared
- 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()
Deprecated Value Members
- def →[B](y: B): (ToBuilder[A, Out], B)
- Implicit
- This member is added by an implicit conversion from ToBuilder[A, Out] toArrowAssoc[ToBuilder[A, Out]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.