Class/Object

xerial.larray

LBitArray

Related Docs: object LBitArray | package larray

Permalink

class LBitArray extends LArray[Boolean] with UnsafeArray[Boolean] with LBitArrayOps

Specialized implementaiton of LArray[Boolean] using LArray[Long] To generate an instance of LBitArray, use LBitArray.newBuilder(Long) or xerial.larray.LBitArray#apply

Self Type
LBitArray
Source
LBitArray.scala
Linear Supertypes
LBitArrayOps, UnsafeArray[Boolean], LogSupport, LazyLogger, LoggingMethods, Serializable, Serializable, RawByteArray[Boolean], LArray[Boolean], WritableByteChannel, Channel, Closeable, AutoCloseable, LSeq[Boolean], LIterable[Boolean], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LBitArray
  2. LBitArrayOps
  3. UnsafeArray
  4. LogSupport
  5. LazyLogger
  6. LoggingMethods
  7. Serializable
  8. Serializable
  9. RawByteArray
  10. LArray
  11. WritableByteChannel
  12. Channel
  13. Closeable
  14. AutoCloseable
  15. LSeq
  16. LIterable
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LBitArray(numBits: Long, m: Memory)

    Permalink
  2. new LBitArray(numBits: Long)

    Permalink
  3. new LBitArray(seq: LLongArray, numBits: Long)

    Permalink

    seq

    raw bit string

Type Members

  1. type Repr = LArray[Boolean]

    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[Boolean]): Repr

    Permalink

    Create a new array that concatenates two arrays

    Create a new array that concatenates two arrays

    Definition Classes
    LIterable
  4. def +:(elem: Boolean): 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, Boolean) ⇒ 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: Boolean): 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: (Boolean, 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
    UnsafeArray → LSeq
  11. def aggregate[B](z: B)(seqop: (B, Boolean) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    LIterable
  12. def apply(index: Long): Boolean

    Permalink

    Return the DNA base at the specified index

    Return the DNA base at the specified index

    Definition Classes
    LBitArrayLSeq
  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
    LBitArrayLSeq
  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
    RawByteArrayLArray
  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[Boolean, 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[Boolean, 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[Boolean]): 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: Boolean): Boolean

    Permalink
    Definition Classes
    LIterable
  22. def copyTo[B](srcOffset: Long, dst: RawByteArray[B], dstOffset: 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
    RawByteArrayLSeq
  23. def copyTo(dst: LByteArray, dstOffset: 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
    RawByteArrayLSeq
  24. def copyToArray[B >: Boolean](xs: LArray[B], start: Long, len: Long): Unit

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

    Permalink
    Definition Classes
    LIterable
  26. def count(checkTrue: Boolean, start: Long, end: Long): Long

    Permalink

    Count the number of bits within the specified range [start, end)

    Count the number of bits within the specified range [start, end)

    checkTrue

    count true or false

    returns

    the number of occurrences

    Definition Classes
    LBitArrayLBitArrayOps
  27. var cursor: Long

    Permalink
    Attributes
    protected
    Definition Classes
    RawByteArray
  28. macro def debug(message: Any, cause: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  30. def drop(n: Long): Repr

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

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

    Permalink
    Definition Classes
    AnyRef
  33. def equals(obj: Any): Boolean

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  36. def exists(p: (Boolean) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    LIterable
  37. def fastCount(v: Long, checkTrue: Boolean): Long

    Permalink
    Attributes
    protected
  38. def fill: Unit

    Permalink

    Set all bits to 1

  39. def filter(pred: (Boolean) ⇒ Boolean): LIterator[Boolean]

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    LIterable
  49. def free: Unit

    Permalink

    Release the memory of LArray.

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

    Definition Classes
    UnsafeArray → LArray
  50. def getByte(offset: Long): Byte

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    LBitArray → AnyRef → Any
  59. def head: Boolean

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

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

    Permalink
    Definition Classes
    LIterable
  62. macro def info(message: Any, cause: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  64. def init: Repr

    Permalink
    Definition Classes
    LIterable
  65. def isEmpty: Boolean

    Permalink

    Tests whether this sequence is empty

    Tests whether this sequence is empty

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

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

    Permalink
    Definition Classes
    LArray → Channel
  68. def iterator: LIterator[Boolean]

    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
  69. def ji: Iterable[Boolean]

    Permalink

    Provides the Iterable interface for Java

    Provides the Iterable interface for Java

    Definition Classes
    LIterable
  70. def last: Boolean

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

    Permalink
    Definition Classes
    LIterable
  72. def length: Long

    Permalink
    Definition Classes
    LIterable
  73. lazy val logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  74. def map[B](f: (Boolean) ⇒ B): LIterator[B]

    Permalink
    Definition Classes
    LIterable
  75. def mkString: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  79. def newBuilder: LBuilder[Boolean, LBitArray]

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

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

    Permalink
    Definition Classes
    AnyRef
  82. def off(index: Long): Boolean

    Permalink
  83. def on(index: Long): Boolean

    Permalink
  84. def partition(p: (Boolean) ⇒ Boolean): (LIterator[Boolean], LIterator[Boolean])

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    LArray
    Annotations
    @inline()
  93. def readFromArray(src: Array[Byte], srcOffset: Int, destOffset: Long, length: Int): Int

    Permalink

    Read the contents from a given source buffer

    Read the contents from a given source buffer

    src

    source buffer

    srcOffset

    byte offset in the source buffer

    destOffset

    byte offset from the destination address

    length

    byte length to read from the source

    Definition Classes
    RawByteArray
  94. def reduce[A1 >: Boolean](op: (A1, A1) ⇒ A1): A1

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

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

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

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

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

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

    Permalink
    Definition Classes
    LIterable
  102. def reverseIterator: LIterator[Boolean]

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

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

    Permalink

    Save to a file.

    Save to a file.

    Definition Classes
    LBitArrayLSeq
  105. def scanLeft[B](z: B)(op: (B, Boolean) ⇒ B): LIterator[B]

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

    Permalink
    Definition Classes
    LIterable
  107. def size: Long

    Permalink

    Element size of this array

    Element size of this array

    returns

    size of this array

    Definition Classes
    LBitArrayLSeq
  108. def slice(start: Long, end: Long): LBitArray

    Permalink

    Extract a slice of the sequence [start, end)

    Extract a slice of the sequence [start, end)

    Definition Classes
    LBitArrayLBitArrayOpsLIterable
  109. def slice(from: Long): LArray[Boolean]

    Permalink
    Definition Classes
    LIterable
  110. 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
  111. 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
  112. def span(p: (Boolean) ⇒ Boolean): (Repr, Repr)

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

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

    Permalink
    Definition Classes
    AnyRef
  115. def tail: LArray[Boolean]

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

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

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

    Permalink
    Definition Classes
    LIterable
  119. def toArray[A1 >: Boolean](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
  120. 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
  121. def toInputStream: InputStream

    Permalink

    Create an input stream for reading LArray byte contents

    Create an input stream for reading LArray byte contents

    Definition Classes
    RawByteArray
  122. def toIterator: LIterator[Boolean]

    Permalink
    Definition Classes
    LIterable
  123. def toLSeq: LSeq[Boolean]

    Permalink

    Wraps with immutable interface

    Wraps with immutable interface

    Definition Classes
    LArray
  124. def toString(): String

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  127. def update(index: Long, v: Boolean): Boolean

    Permalink

    Update an element

    Update an element

    v

    value to set

    returns

    the value

    Definition Classes
    LBitArrayLArray
  128. def view(from: Long, to: Long): LBitArrayView

    Permalink

    Create a shallow copy (view) of LArray

    Create a shallow copy (view) of LArray

    Definition Classes
    LBitArrayLArray
  129. final def wait(): Unit

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  134. def withFilter(p: (Boolean) ⇒ Boolean): LIterator[Boolean]

    Permalink
    Definition Classes
    LIterable
  135. 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
    RawByteArrayLArray → WritableByteChannel
  136. def writeToArray(srcOffset: Long, dest: Array[Byte], destOffset: Int, length: Int): Int

    Permalink

    Write the contents of this array to the destination buffer

    Write the contents of this array to the destination buffer

    srcOffset

    byte offset

    dest

    destination array

    destOffset

    offset in the destination array

    length

    the byte length to write

    returns

    written byte length

    Definition Classes
    RawByteArray
  137. def zip[B](that: LIterable[B]): LIterator[(Boolean, B)]

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

    Permalink
    Definition Classes
    LIterable
  139. def zipWithIndex: LIterator[(Boolean, Long)]

    Permalink
    Definition Classes
    LIterable

Inherited from LBitArrayOps

Inherited from UnsafeArray[Boolean]

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from RawByteArray[Boolean]

Inherited from LArray[Boolean]

Inherited from WritableByteChannel

Inherited from Channel

Inherited from Closeable

Inherited from AutoCloseable

Inherited from LSeq[Boolean]

Inherited from LIterable[Boolean]

Inherited from AnyRef

Inherited from Any

Ungrouped