ZPipeline

zio.stream.ZPipeline
See theZPipeline companion class
object ZPipeline

Attributes

Companion
class
Source
ZPipeline.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ZPipeline.type

Members list

Type members

Classlikes

final class EnvironmentWithPipelinePartiallyApplied[Env](dummy: Boolean = ...) extends AnyVal

Attributes

Source
ZPipeline.scala
Supertypes
class AnyVal
trait Matchable
class Any
final class ServiceWithPipelinePartiallyApplied[Service](dummy: Boolean = ...) extends AnyVal

Attributes

Source
ZPipeline.scala
Supertypes
class AnyVal
trait Matchable
class Any
final class UnwrapScopedPartiallyApplied[Env](dummy: Boolean = ...) extends AnyVal

Attributes

Source
ZPipeline.scala
Supertypes
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def aggregateAsync[Env, Err, In, Out](sink: => ZSink[Env, Err, In, In, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Aggregates elements of this stream using the provided sink for as long as the downstream operators on the stream are busy.

Aggregates elements of this stream using the provided sink for as long as the downstream operators on the stream are busy.

This operator divides the stream into two asynchronous "islands". Operators upstream of this operator run on one fiber, while downstream operators run on another. Whenever the downstream fiber is busy processing elements, the upstream fiber will feed elements into the sink until it signals completion.

Any sink can be used here, but see ZSink.foldWeightedZIO and ZSink.foldUntilZIO for sinks that cover the common usecases.

Attributes

Source
ZPipeline.scala
def aggregateAsyncWithin[Env, Err, In, Out](sink: => ZSink[Env, Err, In, In, Out], schedule: => Schedule[Env, Option[Out], Any])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Like aggregateAsyncWithinEither, but only returns the Right results.

Like aggregateAsyncWithinEither, but only returns the Right results.

Attributes

Source
ZPipeline.scala
def aggregateAsyncWithinEither[Env, Err, In, Out, Out2](sink: => ZSink[Env, Err, In, In, Out], schedule: => Schedule[Env, Option[Out], Out2])(implicit trace: Trace): ZPipeline[Env, Err, In, Either[Out2, Out]]

Aggregates elements using the provided sink until it completes, or until the delay signalled by the schedule has passed.

Aggregates elements using the provided sink until it completes, or until the delay signalled by the schedule has passed.

This operator divides the stream into two asynchronous islands. Operators upstream of this operator run on one fiber, while downstream operators run on another. Elements will be aggregated by the sink until the downstream fiber pulls the aggregated value, or until the schedule's delay has passed.

Aggregated elements will be fed into the schedule to determine the delays between pulls.

Attributes

Source
ZPipeline.scala
def append[In](values: => Chunk[In])(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Attributes

Source
ZPipeline.scala
def apply[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

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)

Attributes

Source
ZPipeline.scala
def branchAfter[Env, Err, In, Out](n: => Int)(f: (Chunk[In]) => ZPipeline[Env, Err, In, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

A dynamic pipeline that first collects n elements from the stream, then creates another pipeline with the function f and sends all the following elements through that.

A dynamic pipeline that first collects n elements from the stream, then creates another pipeline with the function f and sends all the following elements through that.

Attributes

Source
ZPipeline.scala
def changes[Err, In](implicit trace: Trace): ZPipeline[Any, Err, In, In]

Attributes

Source
ZPipeline.scala
def changesWith[Err, In](f: (In, In) => Boolean)(implicit trace: Trace): ZPipeline[Any, Err, In, In]

Attributes

Source
ZPipeline.scala
def changesWithZIO[Env, Err, In](f: (In, In) => ZIO[Env, Err, Boolean])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Attributes

Source
ZPipeline.scala
def chunks[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, Chunk[In]]

Creates a pipeline that exposes the chunk structure of the stream.

Creates a pipeline that exposes the chunk structure of the stream.

Attributes

Source
ZPipeline.scala
def collect[In, Out](f: PartialFunction[In, Out])(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

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 }

Attributes

Source
ZPipeline.scala
def collectLeft[Err, A, B](implicit trace: Trace): ZPipeline[Any, Err, Either[A, B], A]

Attributes

Source
ZPipeline.scala
def collectRight[Err, A, B](implicit trace: Trace): ZPipeline[Any, Err, Either[A, B], B]

Attributes

Source
ZPipeline.scala
def collectSome[Err, A](implicit trace: Trace): ZPipeline[Any, Err, Option[A], A]

Attributes

Source
ZPipeline.scala
def collectSuccess[A, B](implicit trace: Trace): ZPipeline[Any, Nothing, Exit[B, A], A]

Attributes

Source
ZPipeline.scala
def collectWhile[Err, In, Out](pf: PartialFunction[In, Out])(implicit trace: Trace): ZPipeline[Any, Err, In, Out]

Attributes

Source
ZPipeline.scala
def collectWhileLeft[Err, A, B](implicit trace: Trace): ZPipeline[Any, Err, Either[A, B], A]

Attributes

Source
ZPipeline.scala
def collectWhileRight[Err, A, B](implicit trace: Trace): ZPipeline[Any, Err, Either[A, B], B]

Attributes

Source
ZPipeline.scala
def collectWhileSome[Err, A](implicit trace: Trace): ZPipeline[Any, Err, Option[A], A]

Attributes

Source
ZPipeline.scala
def collectWhileSuccess[Err, A](implicit trace: Trace): ZPipeline[Any, Nothing, Exit[Err, A], A]

Attributes

Source
ZPipeline.scala
def collectWhileZIO[Env, Err, In, Out](pf: PartialFunction[In, ZIO[Env, Err, Out]])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Attributes

Source
ZPipeline.scala
def debounce[In](d: => Duration)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Delays the emission of values by holding new values for a set duration. If no new values arrive during that time the value is emitted, however if a new value is received during the holding period the previous value is discarded and the process is repeated with the new value.

Delays the emission of values by holding new values for a set duration. If no new values arrive during that time the value is emitted, however if a new value is received during the holding period the previous value is discarded and the process is repeated with the new value.

This operator is useful if you have a stream of "bursty" events which eventually settle down and you only need the final event of the burst.

Attributes

Example

A search engine may only want to initiate a search after a user has paused typing so as to not prematurely recommend results.

Source
ZPipeline.scala
def decodeCharsWith(charset: => Charset, bufSize: => Int = ...)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, Char]

Creates a pipeline that decodes a stream of bytes into a stream of characters using the given charset

Creates a pipeline that decodes a stream of bytes into a stream of characters using the given charset

Attributes

Source
ZPipeline.scala
def decodeCharsWithDecoder(charsetDecoder: => CharsetDecoder, bufSize: => Int = ...)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, Char]

Creates a pipeline that decodes a stream of bytes into a stream of characters using the given charset decoder.

Creates a pipeline that decodes a stream of bytes into a stream of characters using the given charset decoder.

Attributes

Source
ZPipeline.scala
def decodeStringWith(charset: => Charset)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that decodes a stream of bytes into a stream of strings using the given charset

Creates a pipeline that decodes a stream of bytes into a stream of strings using the given charset

Attributes

Source
ZPipeline.scala
def drain[Err](implicit trace: Trace): ZPipeline[Any, Err, Any, Nothing]

Attributes

Source
ZPipeline.scala
def drop[In](n: => Int)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Creates a pipeline that drops n elements.

Creates a pipeline that drops n elements.

Attributes

Source
ZPipeline.scala
def dropRight[Err, In](n: => Int)(implicit trace: Trace): ZPipeline[Any, Err, In, In]

Attributes

Source
ZPipeline.scala
def dropUntil[In](f: In => Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

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)

Attributes

Source
ZPipeline.scala
def dropUntilZIO[Env, Err, In](p: In => ZIO[Env, Err, Boolean])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Drops incoming elements until the effectful predicate p is satisfied.

Drops incoming elements until the effectful predicate p is satisfied.

Attributes

Source
ZPipeline.scala
def dropWhile[In](f: In => Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

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)

Attributes

Source
ZPipeline.scala
def dropWhileZIO[Env, Err, In, Out](p: In => ZIO[Env, Err, Boolean])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Drops incoming elements as long as the effectful predicate p is satisfied.

Drops incoming elements as long as the effectful predicate p is satisfied.

Attributes

Source
ZPipeline.scala
def encodeCharsWith(charset: => Charset, bufferSize: => Int = ...)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Char, Byte]

Creates a pipeline that converts a stream of characters into a stream of bytes using the given charset

Creates a pipeline that converts a stream of characters into a stream of bytes using the given charset

Attributes

Source
ZPipeline.scala
def encodeStringWith(charset: => Charset, bom: => Chunk[Byte] = ...)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the given charset

Creates a pipeline that converts a stream of strings into a stream of bytes using the given charset

Attributes

Source
ZPipeline.scala

Accesses the environment of the pipeline in the context of a pipeline.

Accesses the environment of the pipeline in the context of a pipeline.

Attributes

Source
ZPipeline.scala
def filter[In](f: In => Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Creates a pipeline that filters elements according to the specified predicate.

Creates a pipeline that filters elements according to the specified predicate.

Attributes

Source
ZPipeline.scala
def filterZIO[Env, Err, In](f: In => ZIO[Env, Err, Boolean])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Attributes

Source
ZPipeline.scala
def flattenChunks[In](implicit trace: Trace): ZPipeline[Any, Nothing, Chunk[In], In]

Creates a pipeline that submerges chunks into the structure of the stream.

Creates a pipeline that submerges chunks into the structure of the stream.

Attributes

Source
ZPipeline.scala
def flattenExit[Err, Out](implicit trace: Trace): ZPipeline[Any, Err, Exit[Err, Out], Out]

Creates a pipeline that converts exit results into a stream of values with failure terminating the stream.

Creates a pipeline that converts exit results into a stream of values with failure terminating the stream.

Attributes

Source
ZPipeline.scala
def flattenIterables[Out](implicit trace: Trace): ZPipeline[Any, Nothing, Iterable[Out], Out]

Creates a pipeline that submerges iterables into the structure of the stream.

Creates a pipeline that submerges iterables into the structure of the stream.

Attributes

Source
ZPipeline.scala
def flattenStreamsPar[Env, Err, Out](n: => Int, outputBuffer: => Int = ...)(implicit trace: Trace): ZPipeline[Env, Err, ZStream[Env, Err, Out], Out]

Creates a pipeline that flattens a stream of streams into a single stream of values. The streams are merged in parallel up to the specified maximum concurrency and will buffer up to output buffer size elements.

Creates a pipeline that flattens a stream of streams into a single stream of values. The streams are merged in parallel up to the specified maximum concurrency and will buffer up to output buffer size elements.

Attributes

Source
ZPipeline.scala
def flattenTake[Err, Out](implicit trace: Trace): ZPipeline[Any, Err, Take[Err, Out], Out]

Creates a pipeline that flattens a stream of takes.

Creates a pipeline that flattens a stream of takes.

Attributes

Source
ZPipeline.scala
def fromChannel[Env, Err, In, Out](channel: => ZChannel[Env, Nothing, Chunk[In], Any, Err, Chunk[Out], Any]): ZPipeline[Env, Err, In, Out]

Creates a pipeline that sends all the elements through the given channel.

Creates a pipeline that sends all the elements through the given channel.

Attributes

Source
ZPipeline.scala
def fromFunction[Env, Err, In, Out](f: (ZStream[Any, Nothing, In]) => ZStream[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Constructs a pipeline from a stream transformation function.

Constructs a pipeline from a stream transformation function.

Attributes

Source
ZPipeline.scala
def fromPush[Env, Err, In, Out](push: => ZIO[Scope & Env, Nothing, (Option[Chunk[In]]) => ZIO[Env, Err, Chunk[Out]]])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline from a chunk processing function.

Creates a pipeline from a chunk processing function.

Attributes

Source
ZPipeline.scala
def fromSink[Env, Err, In, Out](sink: => ZSink[Env, Err, In, In, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that repeatedly sends all elements through the given sink.

Creates a pipeline that repeatedly sends all elements through the given sink.

Attributes

Source
ZPipeline.scala
def groupAdjacentBy[In, Key](f: In => Key)(implicit trace: Trace): ZPipeline[Any, Nothing, In, (Key, NonEmptyChunk[In])]

Creates a pipeline that groups on adjacent keys, calculated by function f.

Creates a pipeline that groups on adjacent keys, calculated by function f.

Attributes

Source
ZPipeline.scala
def grouped[In](chunkSize: => Int)(implicit trace: Trace): ZPipeline[Any, Nothing, In, Chunk[In]]

Attributes

Source
ZPipeline.scala
def groupedWithin[In](chunkSize: => Int, within: => Duration)(implicit trace: Trace): ZPipeline[Any, Nothing, In, Chunk[In]]

Partitions the stream with the specified chunkSize or until the specified duration has passed, whichever is satisfied first.

Partitions the stream with the specified chunkSize or until the specified duration has passed, whichever is satisfied first.

Attributes

Source
ZPipeline.scala
def hexDecode(implicit trace: Trace): ZPipeline[Any, EncodingException, Char, Byte]

Decode each pair of hex digit input characters (both lower or upper case letters are allowed) as one output byte.

Decode each pair of hex digit input characters (both lower or upper case letters are allowed) as one output byte.

Attributes

Source
ZPipeline.scala
def hexEncode(implicit trace: Trace): ZPipeline[Any, Nothing, Byte, Char]

Encode each input byte as two output bytes as the hex representation of the input byte.

Encode each input byte as two output bytes as the hex representation of the input byte.

Attributes

Source
ZPipeline.scala
def identity[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

The identity pipeline, which does not modify streams in any way.

The identity pipeline, which does not modify streams in any way.

Attributes

Source
ZPipeline.scala
def intersperse[Err, In](middle: => In)(implicit trace: Trace): ZPipeline[Any, Err, In, In]

Attributes

Source
ZPipeline.scala
def intersperse[In](start: => In, middle: => In, end: => In)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Attributes

Source
ZPipeline.scala
def iso_8859_1Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the ISO_8859_1 charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the ISO_8859_1 charset

Attributes

Source
ZPipeline.scala
def iso_8859_1Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the ISO_8859_1 charset

Creates a pipeline that converts a stream of strings into a stream of bytes using the ISO_8859_1 charset

Attributes

Source
ZPipeline.scala
def map[In, Out](f: In => Out)(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

Creates a pipeline that maps elements with the specified function.

Creates a pipeline that maps elements with the specified function.

Attributes

Source
ZPipeline.scala
def mapAccum[In, State, Out](s: => State)(f: (State, In) => (State, Out))(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

Creates a pipeline that statefully maps elements with the specified function.

Creates a pipeline that statefully maps elements with the specified function.

Attributes

Source
ZPipeline.scala
def mapAccumZIO[Env, Err, In, State, Out](s: => State)(f: (State, In) => ZIO[Env, Err, (State, Out)])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that statefully maps elements with the specified effect.

Creates a pipeline that statefully maps elements with the specified effect.

Attributes

Source
ZPipeline.scala
def mapChunks[In, Out](f: (Chunk[In]) => Chunk[Out])(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

Creates a pipeline that maps chunks of elements with the specified function.

Creates a pipeline that maps chunks of elements with the specified function.

Attributes

Source
ZPipeline.scala
def mapChunksEither[Env, Err, In, Out](f: (Chunk[In]) => Either[Err, Chunk[Out]])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that maps chunks of elements with the specified function.

Creates a pipeline that maps chunks of elements with the specified function.

Will stop on the first Left found

Attributes

Source
ZPipeline.scala
def mapChunksZIO[Env, Err, In, Out](f: (Chunk[In]) => ZIO[Env, Err, Chunk[Out]])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that maps chunks of elements with the specified effect.

Creates a pipeline that maps chunks of elements with the specified effect.

Attributes

Source
ZPipeline.scala
def mapEitherChunked[Env, Err, In, Out](f: In => Either[Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that maps elements with the specified function.

Creates a pipeline that maps elements with the specified function.

Will stop on the first Left found

Attributes

Source
ZPipeline.scala
def mapStream[Env, Err, In, Out](f: In => ZStream[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that maps elements with the specified function that returns a stream.

Creates a pipeline that maps elements with the specified function that returns a stream.

Attributes

Source
ZPipeline.scala
def mapZIO[Env, Err, In, Out](f: In => ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that maps elements with the specified effectful function.

Creates a pipeline that maps elements with the specified effectful function.

Attributes

Source
ZPipeline.scala
def mapZIOChunked[Env, Err, In, Out](f: In => ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that maps over elements of the stream with the specified effectful function.

Creates a pipeline that maps over elements of the stream with the specified effectful function.

Unlike mapZIO processing is done chunk by chunk. This means that mapZIOChunked provides weaker guarantees than mapZIO. While stream.mapZIO(f).mapZIO(g) is guaranteed to be equivalent to stream.mapZIO(x => f(x).flatMap(g)), the same is not true for mapZIOChunked. For example, mapZIO guarantees that the first element of a stream will first be processed with f and then g before the second element is processed with f. mapZIOChunked may process the first two elements with f and only then move on to process the first element with g.

Attributes

Source
ZPipeline.scala
def mapZIOPar[Env, Err, In, Out](n: => Int)(f: In => ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. Transformed elements will be emitted in the original order.

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. Transformed elements will be emitted in the original order.

Attributes

Note

This combinator destroys the chunking structure. It's recommended to use rechunk afterwards.

Source
ZPipeline.scala
def mapZIOPar[Env, Err, In, Out](n: => Int, bufferSize: => Int = ...)(f: In => ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. Transformed elements will be emitted in the original order.

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. Transformed elements will be emitted in the original order.

Attributes

Note

This combinator destroys the chunking structure. It's recommended to use rechunk afterwards.

Source
ZPipeline.scala
def mapZIOParUnordered[Env, Err, In, Out](n: => Int)(f: In => ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. The element order is not enforced by this combinator, and elements may be reordered.

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. The element order is not enforced by this combinator, and elements may be reordered.

Attributes

Source
ZPipeline.scala
def mapZIOParUnordered[Env, Err, In, Out](n: => Int, bufferSize: => Int = ...)(f: In => ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. The element order is not enforced by this combinator, and elements may be reordered.

Maps over elements of the stream with the specified effectful function, executing up to n invocations of f concurrently. The element order is not enforced by this combinator, and elements may be reordered.

Attributes

Source
ZPipeline.scala
def prepend[In](values: => Chunk[In])(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Emits the provided chunk before emitting any other value.

Emits the provided chunk before emitting any other value.

Attributes

Source
ZPipeline.scala
def rechunk[In](n: => Int)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

A pipeline that rechunks the stream into chunks of the specified size.

A pipeline that rechunks the stream into chunks of the specified size.

Attributes

Source
ZPipeline.scala
def sample[In](p: => Double)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Creates a pipeline that randomly samples elements according to the specified percentage.

Creates a pipeline that randomly samples elements according to the specified percentage.

Attributes

Source
ZPipeline.scala
def scan[In, Out](s: => Out)(f: (Out, In) => Out)(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

Creates a pipeline that scans elements with the specified function.

Creates a pipeline that scans elements with the specified function.

Attributes

Source
ZPipeline.scala
def scanZIO[Env, Err, In, Out](s: => Out)(f: (Out, In) => ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline that scans elements with the specified function.

Creates a pipeline that scans elements with the specified function.

Attributes

Source
ZPipeline.scala

Accesses the specified service in the environment of the pipeline in the context of a pipeline.

Accesses the specified service in the environment of the pipeline in the context of a pipeline.

Attributes

Source
ZPipeline.scala
def splitLines(implicit trace: Trace): ZPipeline[Any, Nothing, String, String]

Splits strings on newlines. Handles both Windows newlines (\r\n) and UNIX newlines (\n).

Splits strings on newlines. Handles both Windows newlines (\r\n) and UNIX newlines (\n).

Attributes

Source
ZPipeline.scala
def splitOn(delimiter: => String)(implicit trace: Trace): ZPipeline[Any, Nothing, String, String]

Splits strings on a delimiter.

Splits strings on a delimiter.

Attributes

Source
ZPipeline.scala
def splitOnChunk[In](delimiter: => Chunk[In])(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Splits strings on a delimiter.

Splits strings on a delimiter.

Attributes

Source
ZPipeline.scala
def suspend[Env, Err, In, Out](pipeline: => ZPipeline[Env, Err, In, Out]): ZPipeline[Env, Err, In, Out]

Lazily constructs a pipeline.

Lazily constructs a pipeline.

Attributes

Source
ZPipeline.scala
def take[In](n: => Long)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Creates a pipeline that takes n elements.

Creates a pipeline that takes n elements.

Attributes

Source
ZPipeline.scala
def takeUntil[In](f: In => Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Creates a pipeline that takes elements until the specified predicate evaluates to true.

Creates a pipeline that takes elements until the specified predicate evaluates to true.

Attributes

Source
ZPipeline.scala
def takeUntilZIO[Env, Err, In](f: In => ZIO[Env, Err, Boolean])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Attributes

Source
ZPipeline.scala
def takeWhile[In](f: In => Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Creates a pipeline that takes elements while the specified predicate evaluates to true.

Creates a pipeline that takes elements while the specified predicate evaluates to true.

Attributes

Source
ZPipeline.scala
def takeWhileZIO[Env, Err, In](f: In => ZIO[Env, Err, Boolean])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Creates a pipeline that takes elements while the specified effectual predicate evaluates to true.

Creates a pipeline that takes elements while the specified effectual predicate evaluates to true.

Attributes

Source
ZPipeline.scala
def tap[Env, Err, In](f: In => ZIO[Env, Err, Any])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Adds an effect to consumption of every element of the pipeline.

Adds an effect to consumption of every element of the pipeline.

Attributes

Source
ZPipeline.scala
def throttleEnforce[In](units: Long, duration: => Duration, burst: => Long = ...)(costFn: (Chunk[In]) => Long)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Throttles the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. Chunks that do not meet the bandwidth constraints are dropped. The weight of each chunk is determined by the costFn function.

Throttles the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. Chunks that do not meet the bandwidth constraints are dropped. The weight of each chunk is determined by the costFn function.

Attributes

Source
ZPipeline.scala
def throttleEnforceZIO[Env, Err, In](units: => Long, duration: => Duration, burst: => Long = ...)(costFn: (Chunk[In]) => ZIO[Env, Err, Long])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Throttles the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. Chunks that do not meet the bandwidth constraints are dropped. The weight of each chunk is determined by the costFn effectful function.

Throttles the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. Chunks that do not meet the bandwidth constraints are dropped. The weight of each chunk is determined by the costFn effectful function.

Attributes

Source
ZPipeline.scala
def throttleShape[In](units: => Long, duration: => Duration, burst: Long = ...)(costFn: (Chunk[In]) => Long)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

Delays the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. The weight of each chunk is determined by the costFn function.

Delays the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. The weight of each chunk is determined by the costFn function.

Attributes

Source
ZPipeline.scala
def throttleShapeZIO[Env, Err, In](units: => Long, duration: => Duration, burst: => Long = ...)(costFn: (Chunk[In]) => ZIO[Env, Err, Long])(implicit trace: Trace): ZPipeline[Env, Err, In, In]

Delays the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. The weight of each chunk is determined by the costFn effectful function.

Delays the chunks of this pipeline according to the given bandwidth parameters using the token bucket algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. The weight of each chunk is determined by the costFn effectful function.

Attributes

Source
ZPipeline.scala
def unwrap[Env, Err, In, Out](zio: ZIO[Env, Err, ZPipeline[Env, Err, In, Out]])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

Creates a pipeline produced from an effect.

Creates a pipeline produced from an effect.

Attributes

Source
ZPipeline.scala

Created a pipeline produced from a scoped effect.

Created a pipeline produced from a scoped effect.

Attributes

Source
ZPipeline.scala
def usASCIIDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the US ASCII charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the US ASCII charset

Attributes

Source
ZPipeline.scala
def usASCIIEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the US ASCII charset

Creates a pipeline that converts a stream of strings into a stream of bytes using the US ASCII charset

Attributes

Source
ZPipeline.scala
def utf16BEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16BE charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16BE charset

Attributes

Source
ZPipeline.scala
def utf16BEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset, without adding a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset, without adding a BOM

Attributes

Source
ZPipeline.scala
def utf16BEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utf16Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16 charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16 charset

Attributes

Source
ZPipeline.scala
def utf16Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utf16LEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16LE charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16LE charset

Attributes

Source
ZPipeline.scala
def utf16LEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16LE charset, without adding a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16LE charset, without adding a BOM

Attributes

Source
ZPipeline.scala
def utf16LEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16LE charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16LE charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utf16WithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16 charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16 charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utf32BEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32BE charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32BE charset

Attributes

Source
ZPipeline.scala
def utf32BEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset, without adding a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset, without adding a BOM

Attributes

Source
ZPipeline.scala
def utf32BEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utf32Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32 charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32 charset

Attributes

Source
ZPipeline.scala
def utf32Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset, without adding a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset, without adding a BOM

Attributes

Source
ZPipeline.scala
def utf32LEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32LE charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32LE charset

Attributes

Source
ZPipeline.scala
def utf32LEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32LE charset, without adding a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32LE charset, without adding a BOM

Attributes

Source
ZPipeline.scala
def utf32LEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32LE charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32LE charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utf32WithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utf8Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_8 charset

Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_8 charset

Attributes

Source
ZPipeline.scala
def utf8Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_8 charset, without adding a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_8 charset, without adding a BOM

Attributes

Source
ZPipeline.scala
def utf8WithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_8 charset prefixing it with a BOM

Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_8 charset prefixing it with a BOM

Attributes

Source
ZPipeline.scala
def utfDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

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.

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.

Attributes

Source
ZPipeline.scala
def zipWithIndex[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, (In, Long)]

Zips this pipeline together with the index of elements.

Zips this pipeline together with the index of elements.

Attributes

Source
ZPipeline.scala
def zipWithNext[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, (In, Option[In])]

Zips each element with the next element if present.

Zips each element with the next element if present.

Attributes

Source
ZPipeline.scala
def zipWithPrevious[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, (Option[In], In)]

Attributes

Source
ZPipeline.scala
def zipWithPreviousAndNext[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, (Option[In], In, Option[In])]

Attributes

Source
ZPipeline.scala

Inherited methods

def deflate(bufferSize: => Int = ..., noWrap: => Boolean = ..., level: => CompressionLevel = ..., strategy: => CompressionStrategy = ..., flushMode: => FlushMode = ...)(implicit trace: Trace): ZPipeline[Any, Nothing, Byte, Byte]

Attributes

Inherited from:
ZPipelinePlatformSpecificConstructors (hidden)
Source
platform.scala
def gunzip[Env](bufferSize: => Int = ...)(implicit trace: Trace): ZPipeline[Any, CompressionException, Byte, Byte]

Attributes

Inherited from:
ZPipelinePlatformSpecificConstructors (hidden)
Source
platform.scala
def gunzipAuto[Env](bufferSize: => Int = ...)(implicit trace: Trace): ZPipeline[Any, CompressionException, Byte, Byte]

Attributes

Inherited from:
ZPipelinePlatformSpecificConstructors (hidden)
Source
platform.scala
def gzip(bufferSize: => Int = ..., level: => CompressionLevel = ..., strategy: => CompressionStrategy = ..., flushMode: => FlushMode = ...)(implicit trace: Trace): ZPipeline[Any, Nothing, Byte, Byte]

Attributes

Inherited from:
ZPipelinePlatformSpecificConstructors (hidden)
Source
platform.scala
def inflate(bufferSize: => Int = ..., noWrap: => Boolean = ...)(implicit trace: Trace): ZPipeline[Any, CompressionException, Byte, Byte]

Attributes

Inherited from:
ZPipelinePlatformSpecificConstructors (hidden)
Source
platform.scala