Packages

object Chunk extends Serializable

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

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 DoubleBuffer(buf: java.nio.DoubleBuffer, offset: Int, size: Int) extends Buffer[DoubleBuffer, java.nio.DoubleBuffer, Double] with Product with Serializable
  9. final case class Doubles(values: Array[Double], offset: Int, length: Int) extends Chunk[Double] with KnownElementType[Double] with Product with Serializable
  10. final case class FloatBuffer(buf: java.nio.FloatBuffer, offset: Int, size: Int) extends Buffer[FloatBuffer, java.nio.FloatBuffer, Float] with Product with Serializable
  11. final case class Floats(values: Array[Float], offset: Int, length: Int) extends Chunk[Float] with KnownElementType[Float] with Product with Serializable
  12. final case class IntBuffer(buf: java.nio.IntBuffer, offset: Int, size: Int) extends Buffer[IntBuffer, java.nio.IntBuffer, Int] with Product with Serializable
  13. final case class Ints(values: Array[Int], offset: Int, length: Int) extends Chunk[Int] with KnownElementType[Int] with Product with Serializable
  14. trait KnownElementType[A] extends AnyRef

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

  15. final case class LongBuffer(buf: java.nio.LongBuffer, offset: Int, size: Int) extends Buffer[LongBuffer, java.nio.LongBuffer, Long] with Product with Serializable
  16. final case class Longs(values: Array[Long], offset: Int, length: Int) extends Chunk[Long] with KnownElementType[Long] with Product with Serializable
  17. 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.

  18. final case class ShortBuffer(buf: java.nio.ShortBuffer, offset: Int, size: Int) extends Buffer[ShortBuffer, java.nio.ShortBuffer, Short] with Product with Serializable
  19. final case class Shorts(values: Array[Short], offset: Int, length: Int) extends Chunk[Short] with KnownElementType[Short] with Product with Serializable
  20. 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def booleans(values: Array[Boolean], offset: Int, length: Int): Chunk[Boolean]

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

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

    Creates a chunk backed by an array of booleans.

  9. 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.

  10. 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.

  11. 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.

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

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

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

    Creates a chunk backed by a byte vector.

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

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

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

    Creates a chunk backed by an array of bytes.

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

    Creates a chunk backed by a Chain.

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

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

  18. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws(classOf[java.lang.CloneNotSupportedException])
  19. def concat[A](chunks: Seq[Chunk[A]]): Chunk[A]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Creates a chunk backed by an array of doubles.

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

    Chunk with no elements.

  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  33. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  34. def floatBuffer(buf: java.nio.FloatBuffer): Chunk[Float]

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

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

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

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

    Creates a chunk backed by an array of floats.

  37. implicit def fs2EqForChunk[A](implicit arg0: Eq[A]): Eq[Chunk[A]]
  38. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  39. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def indexedSeq[O](s: IndexedSeq[O]): Chunk[O]

    Creates a chunk backed by an IndexedSeq.

  41. implicit val instance: Traverse[Chunk] with Monad[Chunk] with FunctorFilter[Chunk]

    Traverse, Monad, and FunctorFilter instance for Chunk.

    Traverse, Monad, and FunctorFilter instance for Chunk.

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

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

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

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

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

    Creates a chunk backed by an array of ints.

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

    Creates a chunk from a scala.collection.Iterable.

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

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

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

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

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

    Creates a chunk backed by an array of longs.

  50. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  51. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  53. def queue[A](queue: scala.collection.immutable.Queue[A]): Chunk[A]

    Creates a chunk consisting of the elements of queue.

  54. 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.

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

    Creates a chunk from a scala.collection.Seq.

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

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

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

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

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

    Creates a chunk backed by an array of shorts.

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

    Creates a chunk consisting of a single element.

  60. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  61. def toString(): String
    Definition Classes
    AnyRef → Any
  62. def vector[O](v: Vector[O]): Chunk[O]

    Creates a chunk backed by a vector.

  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  64. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  65. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws(classOf[java.lang.InterruptedException])
  66. object Booleans extends Serializable
  67. object Boxed extends Serializable
  68. object ByteBuffer extends Serializable
  69. object Bytes extends Serializable
  70. object CharBuffer extends Serializable
  71. object DoubleBuffer extends Serializable
  72. object Doubles extends Serializable
  73. object FloatBuffer extends Serializable
  74. object Floats extends Serializable
  75. object IntBuffer extends Serializable
  76. object Ints extends Serializable
  77. object LongBuffer extends Serializable
  78. object Longs extends Serializable
  79. object Queue
  80. object ShortBuffer extends Serializable
  81. object Shorts extends Serializable

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped