object ZPipeline extends ZPipelinePlatformSpecificConstructors

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZPipeline
  2. ZPipelinePlatformSpecificConstructors
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[In](implicit trace: ZTraceElement): 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)
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def branchAfter[Env, Err, In, Out](n: => Int)(f: (Chunk[In]) => ZPipeline[Env, Err, In, Out])(implicit trace: ZTraceElement): ZPipeline[Env, Err, In, Out]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def collect[In, Out](f: PartialFunction[In, Out])(implicit trace: ZTraceElement): 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 }
  9. def drop[In](n: => Int)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

    Creates a pipeline that drops n elements.

  10. def dropUntil[In](f: (In) => Boolean)(implicit trace: ZTraceElement): 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)
  11. def dropWhile[In](f: (In) => Boolean)(implicit trace: ZTraceElement): 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)
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def filter[In](f: (In) => Boolean)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

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

  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. 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.

  17. def fromPush[Env, Err, In, Out](push: => ZIO[Scope with Env, Nothing, (Option[Chunk[In]]) => ZIO[Env, Err, Chunk[Out]]])(implicit trace: ZTraceElement): ZPipeline[Env, Err, In, Out]

    Creates a pipeline from a chunk processing function.

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

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

  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def groupAdjacentBy[In, Key](f: (In) => Key)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, (Key, NonEmptyChunk[In])]

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

  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def identity[In](implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

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

  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def iso_8859_1Decode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  25. def iso_8859_1Encode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  26. def map[In, Out](f: (In) => Out)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, Out]

    Creates a pipeline that maps elements with the specified function.

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

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

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

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

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

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

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

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

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

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

  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def prepend[In](values: => Chunk[In])(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

    Emits the provided chunk before emitting any other value.

  36. def rechunk[In](n: => Int)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

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

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

    Creates a pipeline that scans elements with the specified function.

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

    Creates a pipeline that scans elements with the specified function.

  39. def splitLines(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, String]

    Splits strings on newlines.

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

  40. def splitOn(delimiter: => String)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, String]

    Splits strings on a delimiter.

  41. def splitOnChunk[In](delimiter: => Chunk[In])(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

    Splits strings on a delimiter.

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

    Lazily constructs a pipeline.

  43. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  44. def take[In](n: => Long)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

    Creates a pipeline that takes n elements.

  45. def takeUntil[In](f: (In) => Boolean)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

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

  46. def takeWhile[In](f: (In) => Boolean)(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, In, In]

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

  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. def usASCIIDecode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  49. def usASCIIEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  50. def utf16BEDecode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  51. def utf16BEEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  52. def utf16BEWithBomEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  53. def utf16Decode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  54. def utf16Encode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  55. def utf16LEDecode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  56. def utf16LEEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  57. def utf16LEWithBomEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  58. def utf16WithBomEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  59. def utf32BEDecode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  60. def utf32BEEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  61. def utf32BEWithBomEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  62. def utf32Decode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  63. def utf32Encode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  64. def utf32LEDecode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  65. def utf32LEEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  66. def utf32LEWithBomEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  67. def utf32WithBomEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  68. def utf8Decode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]
  69. def utf8Encode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]

    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:

    • utf8: No BOM
    • utf16: Has BOM (the outlier)
    • utf16BE & utf16LE: No BOM
    • All utf32 variants: No BOM

    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.

  70. def utf8WithBomEncode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, String, Byte]
  71. def utfDecode(implicit trace: ZTraceElement): ZPipeline[Any, Nothing, Byte, String]

    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.

  72. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  73. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  74. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped