object Chunk extends CollectorK[Chunk] with ChunkCompanionPlatform with Serializable
- Source
- Chunk.scala
- Alphabetic
- By Inheritance
- Chunk
- Serializable
- ChunkCompanionPlatform
- CollectorK
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Booleans(values: Array[Boolean], offset: Int, length: Int) extends Chunk[Boolean] with KnownElementType[Boolean] with Product with Serializable
- final case class Boxed[O](values: Array[O], offset: Int, length: Int) extends Chunk[O] with Product with Serializable
- sealed abstract class Buffer[A <: Buffer[A, B, C], B <: java.nio.Buffer, C] extends Chunk[C] with KnownElementType[C]
- final case class ByteBuffer extends Buffer[ByteBuffer, java.nio.ByteBuffer, Byte] with Product with Serializable
- final case class ByteVectorChunk(toByteVector: ByteVector) extends Chunk[Byte] with KnownElementType[Byte] with Product with Serializable
- final case class Bytes(values: Array[Byte], offset: Int, length: Int) extends Chunk[Byte] with KnownElementType[Byte] with Product with Serializable
- final case class CharBuffer(buf: java.nio.CharBuffer, offset: Int, size: Int) extends Buffer[CharBuffer, java.nio.CharBuffer, Char] with Product with Serializable
- final case class Chars(values: Array[Char], offset: Int, length: Int) extends Chunk[Char] with KnownElementType[Char] with Product with Serializable
- final case class DoubleBuffer(buf: java.nio.DoubleBuffer, offset: Int, size: Int) extends Buffer[DoubleBuffer, java.nio.DoubleBuffer, Double] with Product with Serializable
- final case class Doubles(values: Array[Double], offset: Int, length: Int) extends Chunk[Double] with KnownElementType[Double] with Product with Serializable
- final case class FloatBuffer(buf: java.nio.FloatBuffer, offset: Int, size: Int) extends Buffer[FloatBuffer, java.nio.FloatBuffer, Float] with Product with Serializable
- final case class Floats(values: Array[Float], offset: Int, length: Int) extends Chunk[Float] with KnownElementType[Float] with Product with Serializable
- final case class IntBuffer(buf: java.nio.IntBuffer, offset: Int, size: Int) extends Buffer[IntBuffer, java.nio.IntBuffer, Int] with Product with Serializable
- final case class Ints(values: Array[Int], offset: Int, length: Int) extends Chunk[Int] with KnownElementType[Int] with Product with Serializable
- trait KnownElementType[A] extends AnyRef
Optional mix-in that provides the class tag of the element type in a chunk.
- final case class LongBuffer(buf: java.nio.LongBuffer, offset: Int, size: Int) extends Buffer[LongBuffer, java.nio.LongBuffer, Long] with Product with Serializable
- final case class Longs(values: Array[Long], offset: Int, length: Int) extends Chunk[Long] with KnownElementType[Long] with Product with Serializable
- 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.
- final case class ShortBuffer(buf: java.nio.ShortBuffer, offset: Int, size: Int) extends Buffer[ShortBuffer, java.nio.ShortBuffer, Short] with Product with Serializable
- final case class Shorts(values: Array[Short], offset: Int, length: Int) extends Chunk[Short] with KnownElementType[Short] with Product with Serializable
- final class Singleton[O] extends Chunk[O]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[O](os: O*): Chunk[O]
Creates a chunk with the specified values.
- def array[O](values: Array[O]): Chunk[O]
Creates a chunk backed by an array.
- def arraySeq[O](arraySeq: ArraySeq[O]): Chunk[O]
Creates a chunk backed by a mutable
ArraySeq
. - 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def booleans(values: Array[Boolean], offset: Int, length: Int): Chunk[Boolean]
Creates a chunk backed by a subsequence of an array of booleans.
- def booleans(values: Array[Boolean]): Chunk[Boolean]
Creates a chunk backed by an array of booleans.
- 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. - 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. - 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.
- def byteBuffer(buf: java.nio.ByteBuffer): Chunk[Byte]
Creates a chunk backed by an byte buffer, bounded by the current position and limit
- def byteVector(bv: ByteVector): Chunk[Byte]
Creates a chunk backed by a byte vector.
- def bytes(values: Array[Byte], offset: Int, length: Int): Chunk[Byte]
Creates a chunk backed by a subsequence of an array of bytes.
- def bytes(values: Array[Byte]): Chunk[Byte]
Creates a chunk backed by an array of bytes.
- def chain[O](c: Chain[O]): Chunk[O]
Creates a chunk backed by a
Chain
. - def charBuffer(buf: java.nio.CharBuffer): Chunk[Char]
Creates a chunk backed by an char buffer, bounded by the current position and limit
- def chars(values: Array[Char], offset: Int, length: Int): Chunk[Char]
Creates a chunk backed by a subsequence of an array of chars.
- def chars(values: Array[Char]): Chunk[Char]
Creates a chunk backed by an array of chars.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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. - def concat[A](chunks: Seq[Chunk[A]]): Chunk[A]
Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.
- 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. - def concatBooleans(chunks: Seq[Chunk[Boolean]]): Chunk[Boolean]
Concatenates the specified sequence of boolean chunks in to a single chunk.
- 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. - def concatBytes(chunks: Seq[Chunk[Byte]]): Chunk[Byte]
Concatenates the specified sequence of byte chunks in to a single chunk.
- 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. - def concatChars(chunks: Seq[Chunk[Char]]): Chunk[Char]
Concatenates the specified sequence of char chunks in to a single chunk.
- 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. - def concatDoubles(chunks: Seq[Chunk[Double]]): Chunk[Double]
Concatenates the specified sequence of double chunks in to a single chunk.
- 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. - def concatFloats(chunks: Seq[Chunk[Float]]): Chunk[Float]
Concatenates the specified sequence of float chunks in to a single chunk.
- 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. - def concatInts(chunks: Seq[Chunk[Int]]): Chunk[Int]
Concatenates the specified sequence of int chunks in to a single chunk.
- 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. - def concatLongs(chunks: Seq[Chunk[Long]]): Chunk[Long]
Concatenates the specified sequence of long chunks in to a single chunk.
- 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. - def concatShorts(chunks: Seq[Chunk[Short]]): Chunk[Short]
Concatenates the specified sequence of short chunks in to a single chunk.
- def doubleBuffer(buf: java.nio.DoubleBuffer): Chunk[Double]
Creates a chunk backed by an double buffer, bounded by the current position and limit
- def doubles(values: Array[Double], offset: Int, length: Int): Chunk[Double]
Creates a chunk backed by a subsequence of an array of doubles.
- def doubles(values: Array[Double]): Chunk[Double]
Creates a chunk backed by an array of doubles.
- def empty[A]: Chunk[A]
Chunk with no elements.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def floatBuffer(buf: java.nio.FloatBuffer): Chunk[Float]
Creates a chunk backed by an float buffer, bounded by the current position and limit
- def floats(values: Array[Float], offset: Int, length: Int): Chunk[Float]
Creates a chunk backed by a subsequence of an array of floats.
- def floats(values: Array[Float]): Chunk[Float]
Creates a chunk backed by an array of floats.
- implicit def fs2EqForChunk[A](implicit arg0: Eq[A]): Eq[Chunk[A]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def indexedSeq[O](s: IndexedSeq[O]): Chunk[O]
Creates a chunk backed by an
IndexedSeq
. - implicit val instance: Traverse[Chunk] with Monad[Chunk] with Alternative[Chunk] with TraverseFilter[Chunk]
Traverse
,Monad
,Alternative
, andTraverseFilter
instance forChunk
.Traverse
,Monad
,Alternative
, andTraverseFilter
instance forChunk
.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)
Example: - def intBuffer(buf: java.nio.IntBuffer): Chunk[Int]
Creates a chunk backed by an int buffer, bounded by the current position and limit
- def ints(values: Array[Int], offset: Int, length: Int): Chunk[Int]
Creates a chunk backed by a subsequence of an array of ints.
- def ints(values: Array[Int]): Chunk[Int]
Creates a chunk backed by an array of ints.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterable[O](i: Iterable[O]): Chunk[O]
Creates a chunk from a
scala.collection.Iterable
. - def longBuffer(buf: java.nio.LongBuffer): Chunk[Long]
Creates a chunk backed by an long buffer, bounded by the current position and limit
- def longs(values: Array[Long], offset: Int, length: Int): Chunk[Long]
Creates a chunk backed by a subsequence of an array of ints.
- def longs(values: Array[Long]): Chunk[Long]
Creates a chunk backed by an array of longs.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBuilder[A]: Builder[A, Chunk[A]]
- Definition Classes
- Chunk → CollectorK
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def platformIterable[O](i: Iterable[O]): Option[Chunk[O]]
- Attributes
- protected
- Definition Classes
- ChunkCompanionPlatform
- def queue[A](queue: scala.collection.immutable.Queue[A]): Chunk[A]
Creates a chunk consisting of the elements of
queue
. - 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 ofqueue
and returns the remainder. - def seq[O](s: Seq[O]): Chunk[O]
Creates a chunk from a
scala.collection.Seq
. - def shortBuffer(buf: java.nio.ShortBuffer): Chunk[Short]
Creates a chunk backed by an short buffer, bounded by the current position and limit
- def shorts(values: Array[Short], offset: Int, length: Int): Chunk[Short]
Creates a chunk backed by a subsequence of an array of shorts.
- def shorts(values: Array[Short]): Chunk[Short]
Creates a chunk backed by an array of shorts.
- def singleton[O](o: O): Chunk[O]
Creates a chunk consisting of a single element.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def vector[O](v: Vector[O]): Chunk[O]
Creates a chunk backed by a vector.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Booleans extends Serializable
- object Boxed extends Serializable
- object ByteBuffer extends Serializable
- object Bytes extends Serializable
- object CharBuffer extends Serializable
- object Chars extends Serializable
- object DoubleBuffer extends Serializable
- object Doubles extends Serializable
- object FloatBuffer extends Serializable
- object Floats extends Serializable
- object IntBuffer extends Serializable
- object Ints extends Serializable
- object LongBuffer extends Serializable
- object Longs extends Serializable
- object Queue
- object ShortBuffer extends Serializable
- object Shorts extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated