Modifier and Type | Method and Description |
---|---|
protected void |
doToHandler(Handler<? super Record> handler)
Implementation methods responsible of forwarding all the elements of the Stream to the
Handler specified.
|
chunk, close, concat, concat, count, create, create, create, create, create, distinct, doClose, doIterator, doToString, filter, finalize, getProperty, getTimeout, getUnique, getUnique, isAvailable, isClosed, iterator, onClose, setProperty, setTimeout, slice, toArray, toCollection, toHandler, toList, toMap, toMap, toMultimap, toMultimap, toSet, toSortedList, toSortedList, toSortedSet, toString, track, transform, transform, transform
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected void doToHandler(Handler<? super Record> handler) throws Throwable
Stream
Stream.toHandler(Handler)
to perform internal
iteration, with the guarantee that it is called at most once and with the Stream in the
available state. As a best practice, the method should intercept
Thread.interrupt()
requests and stop iteration, if possible; also remember to call
Handler.handle(Object)
with a null argument after the last element is reached, in
order to signal the end of the sequence.doToHandler
in class Stream<Record>
handler
- the Handler
where to forward elementsThrowable
- in case of failureCopyright © 2015–2016 FBK-irst. All rights reserved.