Class

xerial.larray

MatrixBasedLIntArray

Related Doc: package larray

Permalink

class MatrixBasedLIntArray extends LArray[Int] with AltLIntArrayImpl

Emulate large arrays using two-diemensional matrix of Int. Array[Int](page index)(offset in page)

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

Instance Constructors

  1. new MatrixBasedLIntArray(size: Long)

    Permalink

    size

    array size

Type Members

  1. type Repr = LArray[Int]

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

    Permalink
    Definition Classes
    LIterable

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. def apply(i: Long): Int

    Permalink

    Retrieve an element

    Retrieve an element

    i

    index

    returns

    the element value

    Definition Classes
    MatrixBasedLIntArrayLSeq
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def byteLength: Long

    Permalink

    Byte length of this array.

    Byte length of this array.

    Definition Classes
    LSeq
  15. 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
    MatrixBasedLIntArrayLArray
  16. def clone(): AnyRef

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

    Permalink
    Definition Classes
    LArray → Channel → Closeable → AutoCloseable
  18. 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
  19. 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
  20. 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
  21. def contains(elem: Int): Boolean

    Permalink
    Definition Classes
    LIterable
  22. 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
  23. 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
  24. def copyToArray[B >: Int](xs: LArray[B], start: Long, len: Long): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    LIterable
  41. 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
    MatrixBasedLIntArrayLArray
  42. def getByte(offset: Long): Byte

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    LIterable
  54. def init: Repr

    Permalink
    Definition Classes
    LIterable
  55. def isEmpty: Boolean

    Permalink

    Tests whether this sequence is empty

    Tests whether this sequence is empty

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

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

    Permalink
    Definition Classes
    LArray → Channel
  58. 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
  59. def ji: Iterable[Int]

    Permalink

    Provides the Iterable interface for Java

    Provides the Iterable interface for Java

    Definition Classes
    LIterable
  60. def last: Int

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

    Permalink
    Definition Classes
    LIterable
  62. def length: Long

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

    Permalink
    Definition Classes
    LIterable
  64. def mkString: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  68. def newBuilder: LBuilder[Int, LArray[Int]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    MatrixBasedLIntArrayLIterable
  69. final def notify(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    LIterable
  86. 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
  87. def reverse[A]: Repr

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

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

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

    Permalink

    Save to a file.

    Save to a file.

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

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

    Permalink
    Definition Classes
    LIterable
  93. val size: Long

    Permalink

    array size

    array size

    Definition Classes
    MatrixBasedLIntArrayLSeq
  94. def slice(from: Long, until: Long): LArray[Int]

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

    Permalink
    Definition Classes
    LIterable
  96. 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
  97. 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
  98. def span(p: (Int) ⇒ Boolean): (Repr, Repr)

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

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

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

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

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

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

    Permalink
    Definition Classes
    LIterable
  105. 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
  106. 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
  107. def toIterator: LIterator[Int]

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

    Permalink

    Wraps with immutable interface

    Wraps with immutable interface

    Definition Classes
    LArray
  109. def toString(): String

    Permalink
    Definition Classes
    LArray → AnyRef → Any
  110. 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
    MatrixBasedLIntArrayLArray
  111. 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
  112. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    LIterable
  116. 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
  117. def zip[B](that: LIterable[B]): LIterator[(Int, B)]

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

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

    Permalink
    Definition Classes
    LIterable

Inherited from AltLIntArrayImpl

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