Packages

object Chunk extends CollectorK[Chunk] with ChunkCompanionPlatform with Serializable

Source
Chunk.scala
Linear Supertypes
Serializable, ChunkCompanionPlatform, CollectorK[Chunk], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chunk
  2. Serializable
  3. ChunkCompanionPlatform
  4. CollectorK
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Booleans(values: Array[Boolean], offset: Int, length: Int) extends Chunk[Boolean] with KnownElementType[Boolean] with Product with Serializable
  2. final case class Boxed[O](values: Array[O], offset: Int, length: Int) extends Chunk[O] with Product with Serializable
  3. sealed abstract class Buffer[A <: Buffer[A, B, C], B <: java.nio.Buffer, C] extends Chunk[C] with KnownElementType[C]
  4. final case class ByteBuffer extends Buffer[ByteBuffer, java.nio.ByteBuffer, Byte] with Product with Serializable
  5. final case class ByteVectorChunk(toByteVector: ByteVector) extends Chunk[Byte] with KnownElementType[Byte] with Product with Serializable
  6. final case class Bytes(values: Array[Byte], offset: Int, length: Int) extends Chunk[Byte] with KnownElementType[Byte] with Product with Serializable
  7. final case class CharBuffer(buf: java.nio.CharBuffer, offset: Int, size: Int) extends Buffer[CharBuffer, java.nio.CharBuffer, Char] with Product with Serializable
  8. final case class Chars(values: Array[Char], offset: Int, length: Int) extends Chunk[Char] with KnownElementType[Char] with Product with Serializable
  9. final case class DoubleBuffer(buf: java.nio.DoubleBuffer, offset: Int, size: Int) extends Buffer[DoubleBuffer, java.nio.DoubleBuffer, Double] with Product with Serializable
  10. final case class Doubles(values: Array[Double], offset: Int, length: Int) extends Chunk[Double] with KnownElementType[Double] with Product with Serializable
  11. final case class FloatBuffer(buf: java.nio.FloatBuffer, offset: Int, size: Int) extends Buffer[FloatBuffer, java.nio.FloatBuffer, Float] with Product with Serializable
  12. final case class Floats(values: Array[Float], offset: Int, length: Int) extends Chunk[Float] with KnownElementType[Float] with Product with Serializable
  13. final case class IntBuffer(buf: java.nio.IntBuffer, offset: Int, size: Int) extends Buffer[IntBuffer, java.nio.IntBuffer, Int] with Product with Serializable
  14. final case class Ints(values: Array[Int], offset: Int, length: Int) extends Chunk[Int] with KnownElementType[Int] with Product with Serializable
  15. trait KnownElementType[A] extends AnyRef

    Optional mix-in that provides the class tag of the element type in a chunk.

  16. final case class LongBuffer(buf: java.nio.LongBuffer, offset: Int, size: Int) extends Buffer[LongBuffer, java.nio.LongBuffer, Long] with Product with Serializable
  17. final case class Longs(values: Array[Long], offset: Int, length: Int) extends Chunk[Long] with KnownElementType[Long] with Product with Serializable
  18. final class Queue[A] extends AnyRef

    A FIFO queue of chunks that provides an O(1) size method and provides the ability to take and drop individual elements while preserving the chunk structure as much as possible.

    A FIFO queue of chunks that provides an O(1) size method and provides the ability to take and drop individual elements while preserving the chunk structure as much as possible.

    This is similar to a queue of individual elements but chunk structure is maintained.

  19. final case class ShortBuffer(buf: java.nio.ShortBuffer, offset: Int, size: Int) extends Buffer[ShortBuffer, java.nio.ShortBuffer, Short] with Product with Serializable
  20. final case class Shorts(values: Array[Short], offset: Int, length: Int) extends Chunk[Short] with KnownElementType[Short] with Product with Serializable
  21. final class Singleton[O] extends Chunk[O]

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[O](os: O*): Chunk[O]

    Creates a chunk with the specified values.

  5. def array[O](values: Array[O]): Chunk[O]

    Creates a chunk backed by an array.

  6. def arraySeq[O](arraySeq: ArraySeq[O]): Chunk[O]

    Creates a chunk backed by a mutable ArraySeq.

  7. def arraySeq[O](arraySeq: ArraySeq[O]): Chunk[O]

    Creates a chunk backed by an immutable ArraySeq.

    Creates a chunk backed by an immutable ArraySeq.

    Definition Classes
    ChunkCompanionPlatform
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def booleans(values: Array[Boolean], offset: Int, length: Int): Chunk[Boolean]

    Creates a chunk backed by a subsequence of an array of booleans.

  10. def booleans(values: Array[Boolean]): Chunk[Boolean]

    Creates a chunk backed by an array of booleans.

  11. def boxed[O](values: Array[O], offset: Int, length: Int): Chunk[O]

    Creates a chunk backed by a subsequence of an array.

    Creates a chunk backed by a subsequence of an array. If A is a primitive type, elements will be boxed.

  12. def boxed[O](values: Array[O]): Chunk[O]

    Creates a chunk backed by an array.

    Creates a chunk backed by an array. If O is a primitive type, elements will be boxed.

  13. def buffer[O](b: scala.collection.mutable.Buffer[O]): Chunk[O]

    Creates a chunk backed by a mutable buffer.

    Creates a chunk backed by a mutable buffer. The underlying buffer must not be modified after it is passed to this function.

  14. def byteBuffer(buf: java.nio.ByteBuffer): Chunk[Byte]

    Creates a chunk backed by an byte buffer, bounded by the current position and limit

  15. def byteVector(bv: ByteVector): Chunk[Byte]

    Creates a chunk backed by a byte vector.

  16. def bytes(values: Array[Byte], offset: Int, length: Int): Chunk[Byte]

    Creates a chunk backed by a subsequence of an array of bytes.

  17. def bytes(values: Array[Byte]): Chunk[Byte]

    Creates a chunk backed by an array of bytes.

  18. def chain[O](c: Chain[O]): Chunk[O]

    Creates a chunk backed by a Chain.

  19. def charBuffer(buf: java.nio.CharBuffer): Chunk[Char]

    Creates a chunk backed by an char buffer, bounded by the current position and limit

  20. def chars(values: Array[Char], offset: Int, length: Int): Chunk[Char]

    Creates a chunk backed by a subsequence of an array of chars.

  21. def chars(values: Array[Char]): Chunk[Char]

    Creates a chunk backed by an array of chars.

  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  23. def concat[A](chunks: Seq[Chunk[A]], totalSize: Int): Chunk[A]

    Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.

    Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  24. def concat[A](chunks: Seq[Chunk[A]]): Chunk[A]

    Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.

  25. def concatBooleans(chunks: Seq[Chunk[Boolean]], totalSize: Int): Chunk[Boolean]

    Concatenates the specified sequence of boolean chunks in to a single chunk.

    Concatenates the specified sequence of boolean chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  26. def concatBooleans(chunks: Seq[Chunk[Boolean]]): Chunk[Boolean]

    Concatenates the specified sequence of boolean chunks in to a single chunk.

  27. def concatBytes(chunks: Seq[Chunk[Byte]], totalSize: Int): Chunk[Byte]

    Concatenates the specified sequence of byte chunks in to a single chunk.

    Concatenates the specified sequence of byte chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  28. def concatBytes(chunks: Seq[Chunk[Byte]]): Chunk[Byte]

    Concatenates the specified sequence of byte chunks in to a single chunk.

  29. def concatChars(chunks: Seq[Chunk[Char]], totalSize: Int): Chunk[Char]

    Concatenates the specified sequence of char chunks in to a single chunk.

    Concatenates the specified sequence of char chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  30. def concatChars(chunks: Seq[Chunk[Char]]): Chunk[Char]

    Concatenates the specified sequence of char chunks in to a single chunk.

  31. def concatDoubles(chunks: Seq[Chunk[Double]], totalSize: Int): Chunk[Double]

    Concatenates the specified sequence of double chunks in to a single chunk.

    Concatenates the specified sequence of double chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  32. def concatDoubles(chunks: Seq[Chunk[Double]]): Chunk[Double]

    Concatenates the specified sequence of double chunks in to a single chunk.

  33. def concatFloats(chunks: Seq[Chunk[Float]], totalSize: Int): Chunk[Float]

    Concatenates the specified sequence of float chunks in to a single chunk.

    Concatenates the specified sequence of float chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  34. def concatFloats(chunks: Seq[Chunk[Float]]): Chunk[Float]

    Concatenates the specified sequence of float chunks in to a single chunk.

  35. def concatInts(chunks: Seq[Chunk[Int]], totalSize: Int): Chunk[Int]

    Concatenates the specified sequence of int chunks in to a single chunk.

    Concatenates the specified sequence of int chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  36. def concatInts(chunks: Seq[Chunk[Int]]): Chunk[Int]

    Concatenates the specified sequence of int chunks in to a single chunk.

  37. def concatLongs(chunks: Seq[Chunk[Long]], totalSize: Int): Chunk[Long]

    Concatenates the specified sequence of long chunks in to a single chunk.

    Concatenates the specified sequence of long chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  38. def concatLongs(chunks: Seq[Chunk[Long]]): Chunk[Long]

    Concatenates the specified sequence of long chunks in to a single chunk.

  39. def concatShorts(chunks: Seq[Chunk[Short]], totalSize: Int): Chunk[Short]

    Concatenates the specified sequence of short chunks in to a single chunk.

    Concatenates the specified sequence of short chunks in to a single chunk. The totalSize parameter must be equal to the sum of the size of each chunk or otherwise an exception may be thrown.

  40. def concatShorts(chunks: Seq[Chunk[Short]]): Chunk[Short]

    Concatenates the specified sequence of short chunks in to a single chunk.

  41. def doubleBuffer(buf: java.nio.DoubleBuffer): Chunk[Double]

    Creates a chunk backed by an double buffer, bounded by the current position and limit

  42. def doubles(values: Array[Double], offset: Int, length: Int): Chunk[Double]

    Creates a chunk backed by a subsequence of an array of doubles.

  43. def doubles(values: Array[Double]): Chunk[Double]

    Creates a chunk backed by an array of doubles.

  44. def empty[A]: Chunk[A]

    Chunk with no elements.

  45. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  47. def floatBuffer(buf: java.nio.FloatBuffer): Chunk[Float]

    Creates a chunk backed by an float buffer, bounded by the current position and limit

  48. def floats(values: Array[Float], offset: Int, length: Int): Chunk[Float]

    Creates a chunk backed by a subsequence of an array of floats.

  49. def floats(values: Array[Float]): Chunk[Float]

    Creates a chunk backed by an array of floats.

  50. implicit def fs2EqForChunk[A](implicit arg0: Eq[A]): Eq[Chunk[A]]
  51. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  52. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  53. def indexedSeq[O](s: IndexedSeq[O]): Chunk[O]

    Creates a chunk backed by an IndexedSeq.

  54. implicit val instance: Traverse[Chunk] with Monad[Chunk] with Alternative[Chunk] with TraverseFilter[Chunk]

    Traverse, Monad, Alternative, and TraverseFilter instance for Chunk.

    Traverse, Monad, Alternative, and TraverseFilter instance for Chunk.

    Example:
    1. scala> import cats.syntax.all._, scala.util._
      scala> Chunk("1", "2", "NaN").mapFilter(s => Try(s.toInt).toOption)
      res0: fs2.Chunk[Int] = Chunk(1, 2)
  55. def intBuffer(buf: java.nio.IntBuffer): Chunk[Int]

    Creates a chunk backed by an int buffer, bounded by the current position and limit

  56. def ints(values: Array[Int], offset: Int, length: Int): Chunk[Int]

    Creates a chunk backed by a subsequence of an array of ints.

  57. def ints(values: Array[Int]): Chunk[Int]

    Creates a chunk backed by an array of ints.

  58. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  59. def iterable[O](i: Iterable[O]): Chunk[O]

    Creates a chunk from a scala.collection.Iterable.

  60. def longBuffer(buf: java.nio.LongBuffer): Chunk[Long]

    Creates a chunk backed by an long buffer, bounded by the current position and limit

  61. def longs(values: Array[Long], offset: Int, length: Int): Chunk[Long]

    Creates a chunk backed by a subsequence of an array of ints.

  62. def longs(values: Array[Long]): Chunk[Long]

    Creates a chunk backed by an array of longs.

  63. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  64. def newBuilder[A]: Builder[A, Chunk[A]]
    Definition Classes
    ChunkCollectorK
  65. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  66. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  67. def platformIterable[O](i: Iterable[O]): Option[Chunk[O]]
    Attributes
    protected
    Definition Classes
    ChunkCompanionPlatform
  68. def queue[A](queue: scala.collection.immutable.Queue[A]): Chunk[A]

    Creates a chunk consisting of the elements of queue.

  69. def queueFirstN[A](queue: scala.collection.immutable.Queue[A], n: Int): (Chunk[A], scala.collection.immutable.Queue[A])

    Creates a chunk consisting of the first n elements of queue and returns the remainder.

  70. def seq[O](s: Seq[O]): Chunk[O]

    Creates a chunk from a scala.collection.Seq.

  71. def shortBuffer(buf: java.nio.ShortBuffer): Chunk[Short]

    Creates a chunk backed by an short buffer, bounded by the current position and limit

  72. def shorts(values: Array[Short], offset: Int, length: Int): Chunk[Short]

    Creates a chunk backed by a subsequence of an array of shorts.

  73. def shorts(values: Array[Short]): Chunk[Short]

    Creates a chunk backed by an array of shorts.

  74. def singleton[O](o: O): Chunk[O]

    Creates a chunk consisting of a single element.

  75. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  76. def toString(): String
    Definition Classes
    AnyRef → Any
  77. def vector[O](v: Vector[O]): Chunk[O]

    Creates a chunk backed by a vector.

  78. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  79. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  80. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  81. object Booleans extends Serializable
  82. object Boxed extends Serializable
  83. object ByteBuffer extends Serializable
  84. object Bytes extends Serializable
  85. object CharBuffer extends Serializable
  86. object Chars extends Serializable
  87. object DoubleBuffer extends Serializable
  88. object Doubles extends Serializable
  89. object FloatBuffer extends Serializable
  90. object Floats extends Serializable
  91. object IntBuffer extends Serializable
  92. object Ints extends Serializable
  93. object LongBuffer extends Serializable
  94. object Longs extends Serializable
  95. object Queue
  96. object ShortBuffer extends Serializable
  97. object Shorts extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from ChunkCompanionPlatform

Inherited from CollectorK[Chunk]

Inherited from AnyRef

Inherited from Any

Ungrouped