Class/Object

xerial.larray

LArrayBuilder

Related Docs: object LArrayBuilder | package larray

Permalink

abstract class LArrayBuilder[A, Repr <: LArray[A]] extends LBuilder[A, Repr] with LogSupport

In the following, we need to define builders for every primitive types because if we extract common functions (e.g., resize, mkArray) using type parameter, we cannot avoid boxing/unboxing.

Source
LArrayBuilder.scala
Linear Supertypes
LogSupport, LazyLogger, LoggingMethods, Serializable, Serializable, LBuilder[A, Repr], WritableByteChannel, Channel, Closeable, AutoCloseable, AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LArrayBuilder
  2. LogSupport
  3. LazyLogger
  4. LoggingMethods
  5. Serializable
  6. Serializable
  7. LBuilder
  8. WritableByteChannel
  9. Channel
  10. Closeable
  11. AutoCloseable
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LArrayBuilder()

    Permalink

Abstract Value Members

  1. abstract def +=(elem: A): LArrayBuilder.this.type

    Permalink

    Adds a single element to the builder.

    Adds a single element to the builder.

    elem

    the element to be added.

    returns

    the builder itself.

    Definition Classes
    LBuilder
  2. abstract def elementSize: Long

    Permalink
    Definition Classes
    LBuilder
  3. abstract def result(): Repr

    Permalink

    Produces a collection from the added elements.

    Produces a collection from the added elements. The builder's contents are undefined after this operation.

    returns

    a collection containing the elements added to this builder.

    Definition Classes
    LBuilder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++=(xs: LIterator[A]): LArrayBuilder.this.type

    Permalink
    Definition Classes
    LBuilder
  4. def ++=(xs: TraversableOnce[A]): LArrayBuilder.this.type

    Permalink

    Adds all elements produced by a TraversableOnce to this coll.

    Adds all elements produced by a TraversableOnce to this coll.

    xs

    the TraversableOnce producing the elements to add.

    returns

    the coll itself.

    Definition Classes
    LBuilder
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def append(seq: LSeq[A]): LArrayBuilder.this.type

    Permalink
    Definition Classes
    LArrayBuilderLBuilder
  7. def append(b: Array[Byte], offset: Int, len: Int): LArrayBuilder[A, Repr]

    Permalink
  8. def append(elem: A): LArrayBuilder.this.type

    Permalink
    Definition Classes
    LBuilder
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. var capacity: Long

    Permalink
    Attributes
    protected
  11. def clear(): Unit

    Permalink

    Clears the contents of this builder.

    Clears the contents of this builder. After execution of this method the builder will contain no elements.

    Definition Classes
    LArrayBuilderLBuilder
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def close(): Unit

    Permalink
    Definition Classes
    LArrayBuilder → Channel → Closeable → AutoCloseable
  14. var cursor: Long

    Permalink

    Current cursor position in LByteArray

    Current cursor position in LByteArray

    Attributes
    protected
  15. macro def debug(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  16. macro def debug(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  17. var elems: LByteArray

    Permalink
    Attributes
    protected
  18. def ensureSize(size: Long): Unit

    Permalink
    Attributes
    protected
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. macro def error(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  22. macro def error(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. macro def info(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  27. macro def info(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def isOpen(): Boolean

    Permalink
    Definition Classes
    LArrayBuilder → Channel
  30. lazy val logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  31. def mkArray(size: Long): LByteArray

    Permalink
    Attributes
    protected
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def numElems: Long

    Permalink
    Attributes
    protected
  36. def resize(size: Long): Unit

    Permalink
    Attributes
    protected
  37. def sizeHint(size: Long): Unit

    Permalink

    Gives a hint how many elements are expected to be added when the next result is called.

    Gives a hint how many elements are expected to be added when the next result is called. Some builder classes will optimize their representation based on the hint. However, builder implementations are still required to work correctly even if the hint is wrong, i.e. a different number of elements is added.

    size

    the hint how many elements will be added.

    Definition Classes
    LArrayBuilderLBuilder
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. macro def trace(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  41. macro def trace(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. macro def warn(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  46. macro def warn(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  47. def write(src: ByteBuffer): Int

    Permalink
    Definition Classes
    LArrayBuilder → WritableByteChannel

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from LBuilder[A, Repr]

Inherited from WritableByteChannel

Inherited from Channel

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped