Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BTreeNodeCursor<K, V, U>

Type parameters

  • K

  • V

  • U

Hierarchy

Index

Constructors

constructor

  • new BTreeNodeCursor<K, V, U>(pages: readonly BTreePage<K, V, U>[], index?: number, childIndex?: number, childCursor?: null | Cursor<[K, V]>): BTreeNodeCursor<K, V, U>
  • Type parameters

    • K

    • V

    • U

    Parameters

    • pages: readonly BTreePage<K, V, U>[]
    • Optional index: number
    • Optional childIndex: number
    • Optional childCursor: null | Cursor<[K, V]>

    Returns BTreeNodeCursor<K, V, U>

Properties

childCursor

childCursor: null | Cursor<[K, V]>

childIndex

childIndex: number

index

index: number

Readonly pages

pages: readonly BTreePage<K, V, U>[]

Methods

delete

  • delete(): void
  • Returns void

hasNext

  • hasNext(): boolean
  • Returns boolean

hasPrevious

  • hasPrevious(): boolean
  • Returns boolean

head

  • head(): [K, V]
  • Returns [K, V]

isEmpty

  • isEmpty(): boolean
  • Returns boolean

next

  • next(): { done: boolean; value?: [K, V] }
  • Returns { done: boolean; value?: [K, V] }

    • done: boolean
    • Optional value?: [K, V]

nextIndex

  • nextIndex(): number
  • Returns number

Protected pageCursor

  • Parameters

    Returns Cursor<[K, V]>

Protected pageSize

  • Parameters

    Returns number

previous

  • previous(): { done: boolean; value?: [K, V] }
  • Returns { done: boolean; value?: [K, V] }

    • done: boolean
    • Optional value?: [K, V]

previousIndex

  • previousIndex(): number
  • Returns number

Protected reversePageCursor

set

  • set(newValue: [K, V]): void
  • Parameters

    • newValue: [K, V]

    Returns void

skip

  • skip(count: number): void
  • Parameters

    • count: number

    Returns void

step

  • step(): void
  • Returns void

Static array

  • array<T>(array: readonly T[], index?: number, limit?: number): Cursor<T>
  • Type parameters

    • T

    Parameters

    • array: readonly T[]
    • Optional index: number
    • Optional limit: number

    Returns Cursor<T>

Static empty

  • Type parameters

    • T

    Returns Cursor<T>

Static unary

  • unary<T>(value: T): Cursor<T>
  • Type parameters

    • T

    Parameters

    • value: T

    Returns Cursor<T>

Generated using TypeDoc