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
- 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 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.
- 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 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 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]) @native() @HotSpotIntrinsicCandidate()
- 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 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
- 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
. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterable[O](i: Iterable[O]): Chunk[O]
Creates a chunk from a
scala.collection.Iterable
. - 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
- @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 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 ArraySlice extends Serializable
- object ByteBuffer extends Serializable
- object CharBuffer extends Serializable
- object Queue extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated