A shorter version of ZPipeline.identity, which can facilitate more compact definition of pipelines.
A shorter version of ZPipeline.identity, which can facilitate more compact definition of pipelines.
ZPipeline[Int] >>> ZPipeline.filter(_ % 2 != 0)
Creates a pipeline that collects elements with the specified partial function.
Creates a pipeline that collects elements with the specified partial function.
ZPipeline.collect[Option[Int], Int] { case Some(v) => v }
Creates a pipeline that drops n elements.
Creates a pipeline that drops elements until the specified predicate evaluates to true.
Creates a pipeline that drops elements until the specified predicate evaluates to true.
ZPipeline.dropUntil[Int](_ > 100)
Creates a pipeline that drops elements while the specified predicate evaluates to true.
Creates a pipeline that drops elements while the specified predicate evaluates to true.
ZPipeline.dropWhile[Int](_ <= 100)
Creates a pipeline that filters elements according to the specified predicate.
Creates a pipeline that sends all the elements through the given channel.
Creates a pipeline from a chunk processing function.
Creates a pipeline that repeatedly sends all elements through the given sink.
Creates a pipeline that groups on adjacent keys, calculated by function f.
The identity pipeline, which does not modify streams in any way.
Creates a pipeline that maps elements with the specified function.
Creates a pipeline that statefully maps elements with the specified function.
Creates a pipeline that statefully maps elements with the specified effect.
Creates a pipeline that maps chunks of elements with the specified function.
Creates a pipeline that maps chunks of elements with the specified effect.
Creates a pipeline that maps elements with the specified effectful function.
Emits the provided chunk before emitting any other value.
A pipeline that rechunks the stream into chunks of the specified size.
Creates a pipeline that scans elements with the specified function.
Creates a pipeline that scans elements with the specified function.
Splits strings on newlines.
Splits strings on newlines. Handles both Windows newlines (\r\n
) and UNIX
newlines (\n
).
Splits strings on a delimiter.
Splits strings on a delimiter.
Lazily constructs a pipeline.
Creates a pipeline that takes n elements.
Creates a pipeline that takes elements until the specified predicate evaluates to true.
Creates a pipeline that takes elements while the specified predicate evaluates to true.
utf*Encode
pipelines adhere to the same behavior of Java's
String#getBytes(charset), that is:
utf*Encode
pipelines adhere to the same behavior of Java's
String#getBytes(charset), that is:
If BOM is required, users can use the *WithBomEncode
variants. (As
alluded above, utf16Encode
always prepends BOM, just like
getBytes("UTF-16")
in Java. In fact, it is an alias to both
utf16BEWithBomEncode
and utf16WithBomEncode
.
utfDecode determines the right encoder to use based on the Byte Order Mark (BOM).
utfDecode determines the right encoder to use based on the Byte Order Mark
(BOM). If it doesn't detect one, it defaults to utf8Decode. In the case of
utf16 and utf32 without BOM, utf16Decode
and utf32Decode
should be used
instead as both default to their own default decoder respectively.