object Chunk extends CollectorK[Chunk] with ChunkCompanionPlatform with ChunkCompanionRuntimePlatform with Serializable
- Source
- Chunk.scala
- Alphabetic
- By Inheritance
- Chunk
- Serializable
- ChunkCompanionRuntimePlatform
- ChunkCompanionPlatform
- ChunkCompanion213And3Compat
- CollectorK
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class ArraySlice[O](values: Array[O], offset: Int, length: Int)(implicit ct: ClassTag[O]) extends Chunk[O] with Product with Serializable
- sealed abstract class Buffer[A <: Buffer[A, B, C], B <: java.nio.Buffer, C] extends Chunk[C]
- case class ByteBuffer extends Buffer[ByteBuffer, java.nio.ByteBuffer, Byte] with Product with Serializable
- case class CharBuffer(buf: java.nio.CharBuffer, offset: Int, size: Int) extends Buffer[CharBuffer, java.nio.CharBuffer, Char] with Product with Serializable
- final class Constant[A] extends Chunk[A]
- final class Queue[+O] extends Chunk[O]
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 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], offset: Int, length: Int)(implicit arg0: ClassTag[O]): Chunk[O]
Creates a chunk backed by a slice of an array.
- def array[O](values: Array[O])(implicit arg0: ClassTag[O]): Chunk[O]
Creates a chunk backed by an array.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def concat[A](chunks: Seq[Chunk[A]], totalSize: Int)(implicit arg0: ClassTag[A]): 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]])(implicit arg0: ClassTag[A]): Chunk[A]
Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.
- def constant[A](value: A, size: Int): Chunk[A]
- def empty[A]: Chunk[A]
Chunk with no elements.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- implicit def eqInstance[A](implicit A: Eq[A]): Eq[Chunk[A]]
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def from[O](i: Iterable[O]): Chunk[O]
- def fromOption[O](opt: Option[O]): Chunk[O]
Creates a singleton chunk or returns an empty one
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- implicit val instance: Traverse[Chunk] with Monad[Chunk] with Alternative[Chunk] with TraverseFilter[Chunk]
Traverse
,Monad
,Alternative
, andTraverseFilter
instance forChunk
. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterableOnce[O](i: IterableOnce[O]): Chunk[O]
Creates a chunk from a
scala.collection.IterableOnce
.Creates a chunk from a
scala.collection.IterableOnce
.- Definition Classes
- ChunkCompanion213And3Compat
- def iterator[O](itr: Iterator[O]): Chunk[O]
Creates a chunk from a
scala.collection.Iterator
. - def javaList[O](javaList: List[O]): Chunk[O]
Creates a chunk from a mutable
java.util.List
. - implicit def monoidInstance[A]: Monoid[Chunk[A]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBuilder[O]: Builder[O, Chunk[O]]
- Definition Classes
- Chunk → CollectorK
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def platformFrom[O](i: Iterable[O]): Option[Chunk[O]]
- Attributes
- protected
- Definition Classes
- ChunkCompanion213And3Compat
- 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 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
- 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 ArraySlice extends Serializable
- object ByteBuffer extends Serializable
- object CharBuffer extends Serializable
- object Queue extends Serializable
Deprecated Value Members
- def arraySeq[O](arraySeq: ArraySeq[O]): Chunk[O]
Creates a chunk backed by a mutable
ArraySeq
.Creates a chunk backed by a mutable
ArraySeq
.- Annotations
- @deprecated
- Deprecated
(Since version 3.9.0) Use the
from
general factory instead
- 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
- ChunkCompanion213And3Compat
- Annotations
- @deprecated
- Deprecated
(Since version 3.9.0) Use the
from
general factory instead
- 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.
- Annotations
- @deprecated
- Deprecated
(Since version 3.2.4) Chunk is no longer specialized for collection.mutable.Buffer - use array or indexedSeq instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def indexedSeq[O](s: IndexedSeq[O]): Chunk[O]
Creates a chunk backed by an
IndexedSeq
.Creates a chunk backed by an
IndexedSeq
.- Annotations
- @deprecated
- Deprecated
(Since version 3.9.0) Use the
from
general factory instead
- def iterable[O](i: Iterable[O]): Chunk[O]
Creates a chunk from a
scala.collection.Iterable
.Creates a chunk from a
scala.collection.Iterable
.- Annotations
- @deprecated
- Deprecated
(Since version 3.9.0) Use the
from
general factory instead
- def queue[A](queue: scala.collection.immutable.Queue[A]): Chunk[A]
Creates a chunk consisting of the elements of
queue
.Creates a chunk consisting of the elements of
queue
.- Annotations
- @deprecated
- Deprecated
(Since version 3.9.0) Use the
from
general factory instead
- def seq[O](s: Seq[O]): Chunk[O]
Creates a chunk from a
scala.collection.Seq
.Creates a chunk from a
scala.collection.Seq
.- Annotations
- @deprecated
- Deprecated
(Since version 3.9.0) Use the
from
general factory instead
- def vector[O](v: Vector[O]): Chunk[O]
Creates a chunk backed by a vector.
Creates a chunk backed by a vector.
- Annotations
- @deprecated
- Deprecated
(Since version 3.9.0) Use the
from
general factory instead