Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Value members
Concrete methods
A sink that collects first n
elements into a chunk.
A sink that collects first n
elements into a chunk.
Attributes
A sink that collects all of its inputs into a map. The keys are extracted from inputs using the keying function key
; if multiple inputs use the same key, they are merged using the f
function.
A sink that collects all of its inputs into a map. The keys are extracted from inputs using the keying function key
; if multiple inputs use the same key, they are merged using the f
function.
Attributes
A sink that collects first n
keys into a map. The keys are calculated from inputs using the keying function key
; if multiple inputs use the the same key, they are merged using the f
function.
A sink that collects first n
keys into a map. The keys are calculated from inputs using the keying function key
; if multiple inputs use the the same key, they are merged using the f
function.
Attributes
A sink that collects all of its inputs into a set.
A sink that collects all of its inputs into a set.
Attributes
A sink that collects first n
distinct inputs into a set.
A sink that collects first n
distinct inputs into a set.
Attributes
Accumulates incoming elements into a chunk until predicate p
is satisfied.
Accumulates incoming elements into a chunk until predicate p
is satisfied.
Attributes
Accumulates incoming elements into a chunk until effectful predicate p
is satisfied.
Accumulates incoming elements into a chunk until effectful predicate p
is satisfied.
Attributes
Accumulates incoming elements into a chunk as long as they verify predicate p
.
Accumulates incoming elements into a chunk as long as they verify predicate p
.
Attributes
Accumulates incoming elements into a chunk as long as they verify effectful predicate p
.
Accumulates incoming elements into a chunk as long as they verify effectful predicate p
.
Attributes
A sink that counts the number of elements fed to it.
A sink that counts the number of elements fed to it.
Attributes
Creates a sink halting with the specified Throwable
.
Creates a sink halting with the specified Throwable
.
Attributes
Creates a sink halting with the specified message, wrapped in a RuntimeException
.
Creates a sink halting with the specified message, wrapped in a RuntimeException
.
Attributes
A sink that ignores its inputs.
A sink that ignores its inputs.
Attributes
Drops incoming elements until the predicate p
is satisfied.
Drops incoming elements until the predicate p
is satisfied.
Attributes
Drops incoming elements until the effectful predicate p
is satisfied.
Drops incoming elements until the effectful predicate p
is satisfied.
Attributes
Drops incoming elements as long as the predicate p
is satisfied.
Drops incoming elements as long as the predicate p
is satisfied.
Attributes
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
Accesses the whole environment of the sink.
Accesses the whole environment of the sink.
Attributes
Accesses the environment of the sink.
Accesses the environment of the sink.
Attributes
Accesses the environment of the sink in the context of a sink.
Accesses the environment of the sink in the context of a sink.
Attributes
Accesses the environment of the sink in the context of an effect.
Accesses the environment of the sink in the context of an effect.
Attributes
A sink that returns whether an element satisfies the specified predicate.
A sink that returns whether an element satisfies the specified predicate.
Attributes
A sink that always fails with the specified error.
A sink that always fails with the specified error.
Attributes
Creates a sink halting with a specified cause.
Creates a sink halting with a specified cause.
Attributes
A sink that folds its inputs with the provided function, termination predicate and initial state.
A sink that folds its inputs with the provided function, termination predicate and initial state.
Attributes
A sink that folds its input chunks with the provided function, termination predicate and initial state. contFn
condition is checked only for the initial value and at the end of processing of each chunk. f
and contFn
must preserve chunking-invariance.
A sink that folds its input chunks with the provided function, termination predicate and initial state. contFn
condition is checked only for the initial value and at the end of processing of each chunk. f
and contFn
must preserve chunking-invariance.
Attributes
A sink that effectfully folds its input chunks with the provided function, termination predicate and initial state. contFn
condition is checked only for the initial value and at the end of processing of each chunk. f
and contFn
must preserve chunking-invariance.
A sink that effectfully folds its input chunks with the provided function, termination predicate and initial state. contFn
condition is checked only for the initial value and at the end of processing of each chunk. f
and contFn
must preserve chunking-invariance.
Attributes
A sink that folds its inputs with the provided function and initial state.
A sink that folds its inputs with the provided function and initial state.
Attributes
A sink that folds its input chunks with the provided function and initial state. f
must preserve chunking-invariance.
A sink that folds its input chunks with the provided function and initial state. f
must preserve chunking-invariance.
Attributes
A sink that effectfully folds its input chunks with the provided function and initial state. f
must preserve chunking-invariance.
A sink that effectfully folds its input chunks with the provided function and initial state. f
must preserve chunking-invariance.
Attributes
A sink that effectfully folds its inputs with the provided function and initial state.
A sink that effectfully folds its inputs with the provided function and initial state.
Attributes
Creates a sink that folds elements of type In
into a structure of type S
until max
elements have been folded.
Creates a sink that folds elements of type In
into a structure of type S
until max
elements have been folded.
Like foldWeighted, but with a constant cost function of 1.
Attributes
Creates a sink that effectfully folds elements of type In
into a structure of type S
until max
elements have been folded.
Creates a sink that effectfully folds elements of type In
into a structure of type S
until max
elements have been folded.
Like foldWeightedZIO, but with a constant cost function of 1.
Attributes
Creates a sink that folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
Creates a sink that folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
Attributes
- Note
-
Elements that have an individual cost larger than
max
will force the sink to cross themax
cost. See foldWeightedDecompose for a variant that can handle these cases.
Creates a sink that folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
Creates a sink that folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
The decompose
function will be used for decomposing elements that cause an S
aggregate to cross max
into smaller elements. For example:
Stream(1, 5, 1)
.transduce(
ZSink
.foldWeightedDecompose(List[Int]())((i: Int) => i.toLong, 4,
(i: Int) => Chunk(i - 1, 1)) { (acc, el) =>
el :: acc
}
.map(_.reverse)
)
.runCollect
The stream would emit the elements List(1), List(4), List(1, 1)
.
Be vigilant with this function, it has to generate "simpler" values or the fold may never end. A value is considered indivisible if decompose
yields the empty chunk or a single-valued chunk. In these cases, there is no other choice than to yield a value that will cross the threshold.
The foldWeightedDecomposeZIO allows the decompose function to return a ZIO
value, and consequently it allows the sink to fail.
Attributes
Creates a sink that effectfully folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
Creates a sink that effectfully folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
The decompose
function will be used for decomposing elements that cause an S
aggregate to cross max
into smaller elements. Be vigilant with this function, it has to generate "simpler" values or the fold may never end. A value is considered indivisible if decompose
yields the empty chunk or a single-valued chunk. In these cases, there is no other choice than to yield a value that will cross the threshold.
See foldWeightedDecompose for an example.
Attributes
Creates a sink that effectfully folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
Creates a sink that effectfully folds elements of type In
into a structure of type S
, until max
worth of elements (determined by the costFn
) have been folded.
Attributes
- Note
-
Elements that have an individual cost larger than
max
will force the sink to cross themax
cost. See foldWeightedDecomposeZIO for a variant that can handle these cases.
A sink that effectfully folds its inputs with the provided function, termination predicate and initial state.
A sink that effectfully folds its inputs with the provided function, termination predicate and initial state.
Attributes
A sink that returns whether all elements satisfy the specified predicate.
A sink that returns whether all elements satisfy the specified predicate.
Attributes
A sink that executes the provided effectful function for every element fed to it.
A sink that executes the provided effectful function for every element fed to it.
Attributes
A sink that executes the provided effectful function for every chunk fed to it.
A sink that executes the provided effectful function for every chunk fed to it.
Attributes
A sink that executes the provided effectful function for every chunk fed to it until f
evaluates to false
.
A sink that executes the provided effectful function for every chunk fed to it until f
evaluates to false
.
Attributes
A sink that executes the provided effectful function for every element fed to it until f
evaluates to false
.
A sink that executes the provided effectful function for every element fed to it until f
evaluates to false
.
Attributes
Creates a sink from a zio.stream.ZChannel
Create a sink which publishes each element to the specified hub.
Create a sink which publishes each element to the specified hub.
Attributes
Create a sink which publishes each element to the specified hub. The hub will be shutdown once the stream is closed.
Create a sink which publishes each element to the specified hub. The hub will be shutdown once the stream is closed.
Attributes
Creates a sink from a chunk processing function.
Creates a sink from a chunk processing function.
Attributes
Create a sink which enqueues each element into the specified queue.
Create a sink which enqueues each element into the specified queue.
Attributes
Create a sink which enqueues each element into the specified queue. The queue will be shutdown once the stream is closed.
Create a sink which enqueues each element into the specified queue. The queue will be shutdown once the stream is closed.
Attributes
Creates a single-value sink produced from an effect
Creates a single-value sink produced from an effect
Attributes
Creates a sink containing the first value.
Creates a sink containing the first value.
Attributes
Creates a sink containing the last value.
Creates a sink containing the last value.
Attributes
Creates a sink that does not consume any input but provides the given chunk as its leftovers
Creates a sink that does not consume any input but provides the given chunk as its leftovers
Attributes
Logs the specified message at the current log level.
Logs the specified message at the current log level.
Attributes
Annotates each log in streams composed after this with the specified log annotation.
Annotates each log in streams composed after this with the specified log annotation.
Attributes
Annotates each log in streams composed after this with the specified log annotation.
Annotates each log in streams composed after this with the specified log annotation.
Attributes
Annotates each log in streams composed after this with the specified log annotation.
Annotates each log in streams composed after this with the specified log annotation.
Attributes
Retrieves the log annotations associated with the current scope.
Retrieves the log annotations associated with the current scope.
Attributes
Logs the specified message at the debug log level.
Logs the specified message at the debug log level.
Attributes
Logs the specified message at the error log level.
Logs the specified message at the error log level.
Attributes
Logs the specified cause as an error.
Logs the specified cause as an error.
Attributes
Logs the specified message at the fatal log level.
Logs the specified message at the fatal log level.
Attributes
Logs the specified message at the informational log level.
Logs the specified message at the informational log level.
Attributes
Sets the log level for streams composed after this.
Sets the log level for streams composed after this.
Attributes
Adjusts the label for the logging span for streams composed after this.
Adjusts the label for the logging span for streams composed after this.
Attributes
Logs the specified message at the trace log level.
Logs the specified message at the trace log level.
Attributes
Logs the specified message at the warning log level.
Logs the specified message at the warning log level.
Attributes
Accesses the specified service in the environment of the effect.
Accesses the specified service in the environment of the effect.
Attributes
Accesses the service corresponding to the specified key in the environment.
Accesses the service corresponding to the specified key in the environment.
Attributes
Accesses the specified service in the environment of the sink.
Accesses the specified service in the environment of the sink.
Attributes
Accesses the specified service in the environment of the sink in the context of a sink.
Accesses the specified service in the environment of the sink in the context of a sink.
Attributes
Accesses the specified service in the environment of the sink in the context of an effect.
Accesses the specified service in the environment of the sink in the context of an effect.
Attributes
A sink that immediately ends with the specified value.
A sink that immediately ends with the specified value.
Attributes
A sink that sums incoming numeric values.
A sink that sums incoming numeric values.
Attributes
Returns a lazily constructed sink that may require effects for its creation.
Returns a lazily constructed sink that may require effects for its creation.
Attributes
Tags each metric in this sink with the specific tag.
Tags each metric in this sink with the specific tag.
Attributes
Tags each metric in this sink with the specific tag.
Tags each metric in this sink with the specific tag.
Attributes
Tags each metric in this sink with the specific tag.
Tags each metric in this sink with the specific tag.
Attributes
Retrieves the metric tags associated with the current scope.
Retrieves the metric tags associated with the current scope.
Attributes
A sink that takes the specified number of values.
A sink that takes the specified number of values.
Attributes
Creates a sink produced from an effect.
Creates a sink produced from an effect.
Attributes
Creates a sink produced from a scoped effect.
Creates a sink produced from a scoped effect.
Attributes
Inherited methods
Creates a sink which digests incoming bytes using Java's MessageDigest class, returning the digest value.
Creates a sink which digests incoming bytes using Java's MessageDigest class, returning the digest value.
Attributes
- Inherited from:
- ZSinkPlatformSpecificConstructors (hidden)
Uses the provided File
to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Uses the provided File
to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Attributes
- Inherited from:
- ZSinkPlatformSpecificConstructors (hidden)
Uses the provided Path
represented as a string to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Uses the provided Path
represented as a string to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Attributes
- Inherited from:
- ZSinkPlatformSpecificConstructors (hidden)
Uses the provided URI
to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Uses the provided URI
to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Attributes
- Inherited from:
- ZSinkPlatformSpecificConstructors (hidden)
Uses the provided OutputStream
to create a ZSink that consumes byte chunks and writes them to the OutputStream
. The sink will yield the count of bytes written.
Uses the provided OutputStream
to create a ZSink that consumes byte chunks and writes them to the OutputStream
. The sink will yield the count of bytes written.
The caller of this function is responsible for closing the OutputStream
.
Attributes
- Inherited from:
- ZSinkPlatformSpecificConstructors (hidden)
Uses the provided OutputStream
resource to create a ZSink that consumes byte chunks and writes them to the OutputStream
. The sink will yield the count of bytes written.
Uses the provided OutputStream
resource to create a ZSink that consumes byte chunks and writes them to the OutputStream
. The sink will yield the count of bytes written.
The OutputStream
will be automatically closed after the stream is finished or an error occurred.
Attributes
- Inherited from:
- ZSinkPlatformSpecificConstructors (hidden)
Uses the provided Path
to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Uses the provided Path
to create a ZSink that consumes byte chunks and writes them to the File
. The sink will yield count of bytes written.
Attributes
- Inherited from:
- ZSinkPlatformSpecificConstructors (hidden)