Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/collections
BTreeNode
Class BTreeNode<K, V, U>
Type parameters
K
V
U
Hierarchy
BTreePage
<
K
,
V
,
U
>
BTreeNode
Index
Constructors
constructor
Properties
fold
knots
pages
size
Accessors
arity
Methods
balanced
drop
entries
first
Entry
for
Each
for
Each
Key
for
Each
Value
get
get
Entry
has
is
Empty
keys
last
Entry
lookup
max
Key
min
Key
next
Entry
previous
Entry
reduced
removed
removed
Page
replaced
Page
reverse
Entries
reverse
Keys
reverse
Values
split
split
Left
split
Right
take
updated
updated
Page
updated
Page
Merge
updated
Page
Split
values
empty
Constructors
constructor
new BTree
Node<K, V, U>
(
pages
:
readonly
BTreePage
<
K
,
V
,
U
>
[]
, knots
:
readonly
K
[]
, fold
:
undefined
|
U
, size
:
number
)
:
BTreeNode
<
K
,
V
,
U
>
Type parameters
K
V
U
Parameters
pages:
readonly
BTreePage
<
K
,
V
,
U
>
[]
knots:
readonly
K
[]
fold:
undefined
|
U
size:
number
Returns
BTreeNode
<
K
,
V
,
U
>
Properties
Readonly
fold
fold
:
undefined
|
U
Readonly
knots
knots
:
readonly
K
[]
Readonly
pages
pages
:
readonly
BTreePage
<
K
,
V
,
U
>
[]
Readonly
size
size
:
number
Accessors
arity
get
arity
(
)
:
number
Returns
number
Methods
balanced
balanced
(
tree
:
BTreeContext
<
K
,
V
>
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
tree:
BTreeContext
<
K
,
V
>
Returns
BTreeNode
<
K
,
V
,
U
>
drop
drop
(
lower
:
number
, tree
:
BTreeContext
<
K
,
V
>
)
:
BTreePage
<
K
,
V
,
U
>
Parameters
lower:
number
tree:
BTreeContext
<
K
,
V
>
Returns
BTreePage
<
K
,
V
,
U
>
entries
entries
(
)
:
Cursor
<
[
K
,
V
]
>
Returns
Cursor
<
[
K
,
V
]
>
first
Entry
first
Entry
(
)
:
undefined
|
[
K
,
V
]
Returns
undefined
|
[
K
,
V
]
for
Each
for
Each<T, S>
(
callback
:
(
key
:
K
, value
:
V
)
=>
void
|
T
, thisArg
:
S
)
:
undefined
|
T
Type parameters
T
S
Parameters
callback:
(
key
:
K
, value
:
V
)
=>
void
|
T
(
key
:
K
, value
:
V
)
:
void
|
T
Parameters
key:
K
value:
V
Returns
void
|
T
thisArg:
S
Returns
undefined
|
T
for
Each
Key
for
Each
Key<T, S>
(
callback
:
(
key
:
K
)
=>
void
|
T
, thisArg
:
S
)
:
undefined
|
T
Type parameters
T
S
Parameters
callback:
(
key
:
K
)
=>
void
|
T
(
key
:
K
)
:
void
|
T
Parameters
key:
K
Returns
void
|
T
thisArg:
S
Returns
undefined
|
T
for
Each
Value
for
Each
Value<T, S>
(
callback
:
(
value
:
V
)
=>
void
|
T
, thisArg
:
S
)
:
undefined
|
T
Type parameters
T
S
Parameters
callback:
(
value
:
V
)
=>
void
|
T
(
value
:
V
)
:
void
|
T
Parameters
value:
V
Returns
void
|
T
thisArg:
S
Returns
undefined
|
T
get
get
(
key
:
K
, tree
:
BTreeContext
<
K
,
V
>
)
:
undefined
|
V
Parameters
key:
K
tree:
BTreeContext
<
K
,
V
>
Returns
undefined
|
V
get
Entry
get
Entry
(
x
:
number
)
:
undefined
|
[
K
,
V
]
Parameters
x:
number
Returns
undefined
|
[
K
,
V
]
has
has
(
key
:
K
, tree
:
BTreeContext
<
K
,
V
>
)
:
boolean
Parameters
key:
K
tree:
BTreeContext
<
K
,
V
>
Returns
boolean
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
keys
keys
(
)
:
Cursor
<
K
>
Returns
Cursor
<
K
>
last
Entry
last
Entry
(
)
:
undefined
|
[
K
,
V
]
Returns
undefined
|
[
K
,
V
]
lookup
lookup
(
key
:
K
, tree
:
BTreeContext
<
K
,
V
>
)
:
number
Parameters
key:
K
tree:
BTreeContext
<
K
,
V
>
Returns
number
max
Key
max
Key
(
)
:
K
Returns
K
min
Key
min
Key
(
)
:
K
Returns
K
next
Entry
next
Entry
(
key
:
K
, tree
:
BTreeContext
<
K
,
V
>
)
:
undefined
|
[
K
,
V
]
Parameters
key:
K
tree:
BTreeContext
<
K
,
V
>
Returns
undefined
|
[
K
,
V
]
previous
Entry
previous
Entry
(
key
:
K
, tree
:
BTreeContext
<
K
,
V
>
)
:
undefined
|
[
K
,
V
]
Parameters
key:
K
tree:
BTreeContext
<
K
,
V
>
Returns
undefined
|
[
K
,
V
]
reduced
reduced
(
identity
:
U
, accumulator
:
(
result
:
U
, element
:
V
)
=>
U
, combiner
:
(
result
:
U
, result2
:
U
)
=>
U
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
identity:
U
accumulator:
(
result
:
U
, element
:
V
)
=>
U
(
result
:
U
, element
:
V
)
:
U
Parameters
result:
U
element:
V
Returns
U
combiner:
(
result
:
U
, result2
:
U
)
=>
U
(
result
:
U
, result2
:
U
)
:
U
Parameters
result:
U
result2:
U
Returns
U
Returns
BTreeNode
<
K
,
V
,
U
>
removed
removed
(
key
:
K
, tree
:
BTreeContext
<
K
,
V
>
)
:
BTreePage
<
K
,
V
,
U
>
Parameters
key:
K
tree:
BTreeContext
<
K
,
V
>
Returns
BTreePage
<
K
,
V
,
U
>
removed
Page
removed
Page
(
x
:
number
, newPage
:
BTreePage
<
K
,
V
,
U
>
, oldPage
:
BTreePage
<
K
,
V
,
U
>
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
x:
number
newPage:
BTreePage
<
K
,
V
,
U
>
oldPage:
BTreePage
<
K
,
V
,
U
>
Returns
BTreeNode
<
K
,
V
,
U
>
replaced
Page
replaced
Page
(
x
:
number
, newPage
:
BTreePage
<
K
,
V
,
U
>
, oldPage
:
BTreePage
<
K
,
V
,
U
>
, tree
:
BTreeContext
<
K
,
V
>
)
:
BTreePage
<
K
,
V
,
U
>
Parameters
x:
number
newPage:
BTreePage
<
K
,
V
,
U
>
oldPage:
BTreePage
<
K
,
V
,
U
>
tree:
BTreeContext
<
K
,
V
>
Returns
BTreePage
<
K
,
V
,
U
>
reverse
Entries
reverse
Entries
(
)
:
Cursor
<
[
K
,
V
]
>
Returns
Cursor
<
[
K
,
V
]
>
reverse
Keys
reverse
Keys
(
)
:
Cursor
<
K
>
Returns
Cursor
<
K
>
reverse
Values
reverse
Values
(
)
:
Cursor
<
V
>
Returns
Cursor
<
V
>
split
split
(
x
:
number
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
x:
number
Returns
BTreeNode
<
K
,
V
,
U
>
split
Left
split
Left
(
x
:
number
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
x:
number
Returns
BTreeNode
<
K
,
V
,
U
>
split
Right
split
Right
(
x
:
number
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
x:
number
Returns
BTreeNode
<
K
,
V
,
U
>
take
take
(
upper
:
number
, tree
:
BTreeContext
<
K
,
V
>
)
:
BTreePage
<
K
,
V
,
U
>
Parameters
upper:
number
tree:
BTreeContext
<
K
,
V
>
Returns
BTreePage
<
K
,
V
,
U
>
updated
updated
(
key
:
K
, newValue
:
V
, tree
:
BTreeContext
<
K
,
V
>
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
key:
K
newValue:
V
tree:
BTreeContext
<
K
,
V
>
Returns
BTreeNode
<
K
,
V
,
U
>
updated
Page
updated
Page
(
x
:
number
, newPage
:
BTreePage
<
K
,
V
,
U
>
, oldPage
:
BTreePage
<
K
,
V
,
U
>
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
x:
number
newPage:
BTreePage
<
K
,
V
,
U
>
oldPage:
BTreePage
<
K
,
V
,
U
>
Returns
BTreeNode
<
K
,
V
,
U
>
updated
Page
Merge
updated
Page
Merge
(
x
:
number
, newPage
:
BTreeNode
<
K
,
V
,
U
>
, oldPage
:
BTreePage
<
K
,
V
,
U
>
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
x:
number
newPage:
BTreeNode
<
K
,
V
,
U
>
oldPage:
BTreePage
<
K
,
V
,
U
>
Returns
BTreeNode
<
K
,
V
,
U
>
updated
Page
Split
updated
Page
Split
(
x
:
number
, newPage
:
BTreePage
<
K
,
V
,
U
>
, oldPage
:
BTreePage
<
K
,
V
,
U
>
)
:
BTreeNode
<
K
,
V
,
U
>
Parameters
x:
number
newPage:
BTreePage
<
K
,
V
,
U
>
oldPage:
BTreePage
<
K
,
V
,
U
>
Returns
BTreeNode
<
K
,
V
,
U
>
values
values
(
)
:
Cursor
<
V
>
Returns
Cursor
<
V
>
Static
empty
empty<K, V, U>
(
)
:
BTreeLeaf
<
K
,
V
,
U
>
Type parameters
K
V
U
Returns
BTreeLeaf
<
K
,
V
,
U
>
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
BTree
BTree
Context
BTree
Leaf
BTree
Node
constructor
fold
knots
pages
size
arity
balanced
drop
entries
first
Entry
for
Each
for
Each
Key
for
Each
Value
get
get
Entry
has
is
Empty
keys
last
Entry
lookup
max
Key
min
Key
next
Entry
previous
Entry
reduced
removed
removed
Page
replaced
Page
reverse
Entries
reverse
Keys
reverse
Values
split
split
Left
split
Right
take
updated
updated
Page
updated
Page
Merge
updated
Page
Split
values
empty
BTree
Node
Cursor
BTree
Page
Keys
Cursor
Node
Cursor
STree
STree
Context
STree
Leaf
STree
Node
STree
Node
Cursor
STree
Page
Values
Cursor
Generated using
TypeDoc