Trait

xerial.larray

AltLIntArrayImpl

Related Doc: package larray

Permalink

trait AltLIntArrayImpl extends LArray[Int]

A common trait for alternative implementations of LArray. This implementation is provided only for testing purpose, so many features might be missing in LArrays impemented this trait.

Source
AltLArray.scala
Linear Supertypes
LArray[Int], WritableByteChannel, Channel, Closeable, AutoCloseable, LSeq[Int], LIterable[Int], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AltLIntArrayImpl
  2. LArray
  3. WritableByteChannel
  4. Channel
  5. Closeable
  6. AutoCloseable
  7. LSeq
  8. LIterable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Repr = LArray[Int]

    Permalink
    Definition Classes
    LIterable
  2. class SlidingIterator extends AbstractLIterator[LSeq.Repr]

    Permalink
    Definition Classes
    LIterable

Abstract Value Members

  1. abstract def apply(i: Long): Int

    Permalink

    Retrieve an element at the given index.

    Retrieve an element at the given index. LArray does not perform boundary checks for optimizing the performance, so reading the indexes out of bounds might cause JVM crash.

    i

    index

    returns

    the element value

    Definition Classes
    LSeq
    Annotations
    @inline()
  2. abstract def clear(): Unit

    Permalink

    Clear the contents of the array.

    Clear the contents of the array. It simply fills the array with zero bytes.

    Definition Classes
    LArray
  3. abstract def free: Unit

    Permalink

    Release the memory of LArray.

    Release the memory of LArray. After calling this method, the results of calling the other methods becomes undefined or might cause JVM crash.

    Definition Classes
    LArray
  4. abstract def newBuilder: LBuilder[Int, Repr]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LIterable
  5. abstract def size: Long

    Permalink

    Element size of this array

    Element size of this array

    returns

    size of this array

    Definition Classes
    LSeq
  6. abstract def update(i: Long, v: Int): Int

    Permalink

    Update an element

    Update an element

    i

    index to be updated

    v

    value to set

    returns

    the value

    Definition Classes
    LArray
    Annotations
    @inline()

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 ++(other: LSeq[Int]): Repr

    Permalink

    Create a new array that concatenates two arrays

    Create a new array that concatenates two arrays

    Definition Classes
    LIterable
  4. def +:(elem: Int): Repr

    Permalink

    Copy of thie array with an element prepended.

    Copy of thie array with an element prepended.

    elem

    the prepended element.

    returns

    a new array consisting ofall elements of this array preceded by the new elem.

    Definition Classes
    LIterable
  5. def /:[B](z: B)(op: (B, Int) ⇒ B): B

    Permalink

    fold left

    fold left

    B

    the result type of the binary operator

    z

    the start value

    op

    the binary operator

    returns

    the result of inserting op between consecutive elements of this array, going left to right with the start value z on the left:

    op(...op(op(z, x1), x2), ..., xn)))
    Definition Classes
    LIterable
  6. def :+(elem: Int): Repr

    Permalink

    Copy of this array with an element appended.

    Copy of this array with an element appended.

    elem

    the appended element

    returns

    a new array consisting of all elements of this array follwed by the new elem

    Definition Classes
    LIterable
  7. def :\[B](z: B)(op: (Int, B) ⇒ B): B

    Permalink

    fold right

    fold right

    B

    the result type of the binary operator

    z

    the start value

    op

    the binary operator

    returns

    the result of inserting op between consecutive elements of this array, going right to left with the start value z on the right:

    op(x1, op(x2, ..., op(xn, z)...))
    Definition Classes
    LIterable
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    LIterable
  10. def address: Long

    Permalink

    Raw-memory address of this array

    Raw-memory address of this array

    Definition Classes
    AltLIntArrayImplLSeq
  11. def aggregate[B](z: B)(seqop: (B, Int) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    LIterable
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def byteLength: Long

    Permalink

    Byte length of this array.

    Byte length of this array.

    Definition Classes
    LSeq
  14. def clone(): AnyRef

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

    Permalink
    Definition Classes
    LArray → Channel → Closeable → AutoCloseable
  16. def collect[B](pf: PartialFunction[Int, B]): LIterator[B]

    Permalink

    Builds a new collection by applying a partial function to all elments of this array on which the function is defined.

    Builds a new collection by applying a partial function to all elments of this array on which the function is defined.

    Definition Classes
    LIterable
  17. def collectFirst[B](pf: PartialFunction[Int, B]): Option[B]

    Permalink

    Finds the first element of this array on which the given partial function is defined, and applies the partial function to it.

    Finds the first element of this array on which the given partial function is defined, and applies the partial function to it.

    B

    return type

    pf

    partial function

    returns

    an option value containing pf applied to the first value for which the function is defined, or None if not exists.

    Definition Classes
    LIterable
  18. def concat(other: LSeq[Int]): Repr

    Permalink

    Create a new array that concatenates two arrays

    Create a new array that concatenates two arrays

    Definition Classes
    LIterable
  19. def contains(elem: Int): Boolean

    Permalink
    Definition Classes
    LIterable
  20. def copyTo[B](srcOffset: Long, dest: RawByteArray[B], destOffset: Long, blen: Long): Unit

    Permalink

    Copy the contents of this sequence into the target LByteArray

    Copy the contents of this sequence into the target LByteArray

    blen

    the byte length to copy

    Definition Classes
    AltLIntArrayImplLSeq
  21. def copyTo(dest: LByteArray, destOffset: Long): Unit

    Permalink

    Copy the contents of this LSeq[A] into the target LByteArray

    Copy the contents of this LSeq[A] into the target LByteArray

    Definition Classes
    AltLIntArrayImplLSeq
  22. def copyToArray[B >: Int](xs: LArray[B], start: Long, len: Long): Unit

    Permalink
    Definition Classes
    LIterable
  23. def copyToArray[B >: Int](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    LIterable
  24. def drop(n: Long): Repr

    Permalink
    Definition Classes
    LIterable
  25. def dropWhile(p: (Int) ⇒ Boolean): Repr

    Permalink
    Definition Classes
    LIterable
  26. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def exists(p: (Int) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    LIterable
  29. def filter(pred: (Int) ⇒ Boolean): LIterator[Int]

    Permalink
    Definition Classes
    LIterable
  30. def filterNot(pred: (Int) ⇒ Boolean): LIterator[Int]

    Permalink
    Definition Classes
    LIterable
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def find(p: (Int) ⇒ Boolean): Option[Int]

    Permalink
    Definition Classes
    LIterable
  33. def flatMap[B](f: (Int) ⇒ LIterator[B]): LIterator[B]

    Permalink
    Definition Classes
    LIterable
  34. def fold[A1 >: Int](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    LIterable
  35. def foldLeft[B](z: B)(op: (B, Int) ⇒ B): B

    Permalink
    Definition Classes
    LIterable
  36. def foldRight[B](z: B)(op: (Int, B) ⇒ B): B

    Permalink
    Definition Classes
    LIterable
  37. def forall(p: (Int) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    LIterable
  38. def foreach[U](f: (Int) ⇒ U): Unit

    Permalink
    Definition Classes
    LIterable
  39. def getByte(offset: Long): Byte

    Permalink
    Definition Classes
    LSeq
    Annotations
    @inline()
  40. def getChar(offset: Long): Char

    Permalink
    Definition Classes
    LSeq
    Annotations
    @inline()
  41. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  42. def getDouble(offset: Long): Double

    Permalink
    Definition Classes
    LSeq
    Annotations
    @inline()
  43. def getFloat(offset: Long): Float

    Permalink
    Definition Classes
    LSeq
    Annotations
    @inline()
  44. def getInt(offset: Long): Int

    Permalink
    Definition Classes
    LSeq
    Annotations
    @inline()
  45. def getLong(offset: Long): Long

    Permalink
    Definition Classes
    LSeq
    Annotations
    @inline()
  46. def getShort(offset: Long): Short

    Permalink
    Definition Classes
    LSeq
    Annotations
    @inline()
  47. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  48. def head: Int

    Permalink
    Definition Classes
    LIterable
  49. def indexOf[B >: Int](elem: B): Long

    Permalink
    Definition Classes
    LIterable
  50. def indexWhere(p: (Int) ⇒ Boolean, from: Long): Long

    Permalink
    Definition Classes
    LIterable
  51. def init: Repr

    Permalink
    Definition Classes
    LIterable
  52. def isEmpty: Boolean

    Permalink

    Tests whether this sequence is empty

    Tests whether this sequence is empty

    Definition Classes
    LIterable
  53. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    LArray → Channel
  55. def iterator: LIterator[Int]

    Permalink

    Creates a new iterator over all elements contained in this collection

    Creates a new iterator over all elements contained in this collection

    Definition Classes
    LIterable
  56. def ji: Iterable[Int]

    Permalink

    Provides the Iterable interface for Java

    Provides the Iterable interface for Java

    Definition Classes
    LIterable
  57. def last: Int

    Permalink
    Definition Classes
    LIterable
  58. def lastIndexWhere(p: (Int) ⇒ Boolean, end: Int): Int

    Permalink
    Definition Classes
    LIterable
  59. def length: Long

    Permalink
    Definition Classes
    LIterable
  60. def map[B](f: (Int) ⇒ B): LIterator[B]

    Permalink
    Definition Classes
    LIterable
  61. def mkString: String

    Permalink
    Definition Classes
    LIterable
  62. def mkString(sep: String): String

    Permalink
    Definition Classes
    LIterable
  63. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    LIterable
  64. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  67. def partition(p: (Int) ⇒ Boolean): (LIterator[Int], LIterator[Int])

    Permalink
    Definition Classes
    LIterable
  68. def prefixLength(p: (Int) ⇒ Boolean): Long

    Permalink
    Definition Classes
    LIterable
  69. def putByte(offset: Long, v: Byte): Byte

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  70. def putChar(offset: Long, v: Char): Char

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  71. def putDouble(offset: Long, v: Double): Double

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  72. def putFloat(offset: Long, v: Float): Float

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  73. def putInt(offset: Long, v: Int): Int

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  74. def putLong(offset: Long, v: Long): Long

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  75. def putShort(offset: Long, v: Short): Short

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  76. def reduce[A1 >: Int](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    LIterable
  77. def reduceLeft[B >: Int](op: (B, Int) ⇒ B): B

    Permalink
    Definition Classes
    LIterable
  78. def reduceLeftOption[B >: Int](op: (B, Int) ⇒ B): Option[B]

    Permalink
    Definition Classes
    LIterable
  79. def reduceOption[A1 >: Int](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    LIterable
  80. def reduceRight[B >: Int](op: (Int, B) ⇒ B): B

    Permalink
    Definition Classes
    LIterable
  81. def reduceRightOption[B >: Int](op: (Int, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    LIterable
  82. def release: Unit

    Permalink

    Release the memory of LArray.

    Release the memory of LArray. After calling this mehtod, thr results of calling the other methods becomes undefined or might cause JVM crash.

    Definition Classes
    LArray
  83. def reverse[A]: Repr

    Permalink
    Definition Classes
    LIterable
  84. def reverseIterator: LIterator[Int]

    Permalink
    Definition Classes
    LIterable
  85. def sameElements[B >: Int](that: LIterable[B]): Boolean

    Permalink
    Definition Classes
    LIterable
  86. def saveTo(f: File): File

    Permalink

    Save to a file.

    Save to a file.

    Definition Classes
    LSeq
  87. def scanLeft[B](z: B)(op: (B, Int) ⇒ B): LIterator[B]

    Permalink
    Definition Classes
    LIterable
  88. def segmentLength(p: (Int) ⇒ Boolean, from: Long): Long

    Permalink
    Definition Classes
    LIterable
  89. def slice(from: Long, until: Long): LArray[Int]

    Permalink
    Definition Classes
    LIterable
  90. def slice(from: Long): LArray[Int]

    Permalink
    Definition Classes
    LIterable
  91. def sliding(size: Long, step: Long): LIterator[Repr]

    Permalink

    Groups elemnts in fixed size blocks by passing a 'sliding window' over them.

    Groups elemnts in fixed size blocks by passing a 'sliding window' over them.

    size

    the number of elements per group

    step

    the distance between the first elements of successive groups

    returns

    An itertor producing group of elements.

    Definition Classes
    LIterable
  92. def sliding(size: Int): LIterator[Repr]

    Permalink

    Groups elements in fixed size blocks by passing a 'sliding window' over them

    Groups elements in fixed size blocks by passing a 'sliding window' over them

    size

    the number of elements per group

    returns

    An iterator producing group of elements.

    Definition Classes
    LIterable
  93. def span(p: (Int) ⇒ Boolean): (Repr, Repr)

    Permalink
    Definition Classes
    LIterable
  94. def splitAt(n: Long): (Repr, Repr)

    Permalink
    Definition Classes
    LIterable
  95. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  96. def tail: LArray[Int]

    Permalink
    Definition Classes
    LIterable
  97. def take(n: Long): Repr

    Permalink
    Definition Classes
    LIterable
  98. def takeRight(n: Long): Repr

    Permalink
    Definition Classes
    LIterable
  99. def takeWhile(p: (Int) ⇒ Boolean): Repr

    Permalink
    Definition Classes
    LIterable
  100. def toArray[A1 >: Int](implicit arg0: ClassTag[A1]): Array[A1]

    Permalink

    Creates a copy of this array in the form of the standard Scala Array

    Creates a copy of this array in the form of the standard Scala Array

    Definition Classes
    LIterable
  101. def toDirectByteBuffer: Array[ByteBuffer]

    Permalink

    Create a sequence of DirectByteBuffer that projects LArray contents

    Create a sequence of DirectByteBuffer that projects LArray contents

    returns

    sequence of java.nio.ByteBuffer

    Definition Classes
    LSeq
  102. def toIterator: LIterator[Int]

    Permalink
    Definition Classes
    LIterable
  103. def toLSeq: LSeq[Int]

    Permalink

    Wraps with immutable interface

    Wraps with immutable interface

    Definition Classes
    LArray
  104. def toString(): String

    Permalink
    Definition Classes
    LArray → AnyRef → Any
  105. def view(from: Long, to: Long): LIntArrayView

    Permalink

    Create a shallow copy (view) of LArray

    Create a shallow copy (view) of LArray

    Definition Classes
    AltLIntArrayImplLArray
  106. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  109. def withFilter(p: (Int) ⇒ Boolean): LIterator[Int]

    Permalink
    Definition Classes
    LIterable
  110. def write(src: ByteBuffer): Int

    Permalink

    Write the contents of ByteBuffer to this array.

    Write the contents of ByteBuffer to this array. This method increments the internal cursor.

    Definition Classes
    LArray → WritableByteChannel
  111. def zip[B](that: LIterable[B]): LIterator[(Int, B)]

    Permalink
    Definition Classes
    LIterable
  112. def zipAll[B, A1 >: Int, B1 >: B](that: LIterable[B], thisElem: A1, thatElem: B1): LIterator[(A1, B1)]

    Permalink
    Definition Classes
    LIterable
  113. def zipWithIndex: LIterator[(Int, Long)]

    Permalink
    Definition Classes
    LIterable

Inherited from LArray[Int]

Inherited from WritableByteChannel

Inherited from Channel

Inherited from Closeable

Inherited from AutoCloseable

Inherited from LSeq[Int]

Inherited from LIterable[Int]

Inherited from AnyRef

Inherited from Any

Ungrouped