class BpTreeMap2[K <: Comparable[K], V] extends AbstractMap[K, V] with Serializable with Cloneable with SortedMap[K, V]
********************************************************************************** The BpTreeMap2 class provides B+Tree maps. B+Trees are used as multi-level index structures that provide efficient access for both point queries and range queries. All keys will be at the leaf level with leaf nodes linked by references. Internal nodes will contain divider keys such that each divider key corresponds to the largest key in its left subtree (largest left). Keys in left subtree are "<=", while keys in right substree are ">".
- Alphabetic
- By Inheritance
- BpTreeMap2
- SortedMap
- Cloneable
- Cloneable
- Serializable
- Serializable
- AbstractMap
- Map
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BpTreeMap2()(implicit arg0: ClassTag[K], arg1: ClassTag[V])
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Unit
- Definition Classes
- AbstractMap → Map
-
def
clone(): AnyRef
- Attributes
- protected[java.util]
- Definition Classes
- AbstractMap → AnyRef
- Annotations
- @throws( ... )
-
def
comparator(): Comparator[_ >: K]
****************************************************************************** Return null to use the natural order based on the key type.
****************************************************************************** Return null to use the natural order based on the key type. This requires the key type to implement Comparable.
- Definition Classes
- BpTreeMap2 → SortedMap
-
def
compute(arg0: K, arg1: BiFunction[_ >: K, _ >: V, _ <: V]): V
- Definition Classes
- Map
-
def
computeIfAbsent(arg0: K, arg1: Function[_ >: K, _ <: V]): V
- Definition Classes
- Map
-
def
computeIfPresent(arg0: K, arg1: BiFunction[_ >: K, _ >: V, _ <: V]): V
- Definition Classes
- Map
-
def
containsKey(arg0: Any): Boolean
- Definition Classes
- AbstractMap → Map
-
def
containsValue(arg0: Any): Boolean
- Definition Classes
- AbstractMap → Map
-
def
entrySet(): Set[Entry[K, V]]
****************************************************************************** Return a set containing all the entries as pairs of keys and values.
****************************************************************************** Return a set containing all the entries as pairs of keys and values.
- returns
the set view of the map
- Definition Classes
- BpTreeMap2 → SortedMap → AbstractMap → Map
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AbstractMap → Map → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(key: K, n: Node): V
****************************************************************************** Recursive helper function for finding a key in B+trees.
****************************************************************************** Recursive helper function for finding a key in B+trees.
- key
the key to find
- n
the current node
-
def
firstKey(): K
****************************************************************************** Return the first (smallest) key in the B+Tree map.
****************************************************************************** Return the first (smallest) key in the B+Tree map.
- returns
the first key in the B+Tree map.
- Definition Classes
- BpTreeMap2 → SortedMap
-
def
forEach(arg0: BiConsumer[_ >: K, _ >: V]): Unit
- Definition Classes
- Map
-
def
get(key: Any): V
****************************************************************************** Given the key, look up the value in the B+Tree map.
****************************************************************************** Given the key, look up the value in the B+Tree map.
- key
the key used for look up
- returns
the value associated with the key or null if not found
- Definition Classes
- BpTreeMap2 → AbstractMap → Map
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getOrDefault(arg0: Any, arg1: V): V
- Definition Classes
- Map
-
def
hashCode(): Int
- Definition Classes
- AbstractMap → Map → AnyRef → Any
-
def
headMap(toKey: K): SortedMap[K, V]
****************************************************************************** Return the portion of the B+Tree map where key < toKey.
****************************************************************************** Return the portion of the B+Tree map where key < toKey.
- returns
the submap with keys in the range [firstKey, toKey)
- Definition Classes
- BpTreeMap2 → SortedMap
-
def
insert(key: K, ref: V, n: Node): Node
****************************************************************************** Recursive helper function for inserting a key in B+trees.
****************************************************************************** Recursive helper function for inserting a key in B+trees.
- key
the key to insert
- ref
the value/node to insert
- n
the current node
- returns
the node inserted into/current node
-
def
isEmpty(): Boolean
- Definition Classes
- AbstractMap → Map
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keySet(): Set[K]
- Definition Classes
- AbstractMap → Map
-
def
lastKey(): K
****************************************************************************** Return the last (largest) key in the B+Tree map.
****************************************************************************** Return the last (largest) key in the B+Tree map.
- returns
the last key in the B+Tree map.
- Definition Classes
- BpTreeMap2 → SortedMap
-
def
merge(arg0: K, arg1: V, arg2: BiFunction[_ >: V, _ >: V, _ <: V]): V
- Definition Classes
- Map
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def printTree(): Unit
-
def
put(key: K, value: V): V
****************************************************************************** Put the key-value pair in the B+Tree map.
****************************************************************************** Put the key-value pair in the B+Tree map.
- key
the key to insert
- value
the value to insert
- returns
null, not the previous value for this key
- Definition Classes
- BpTreeMap2 → AbstractMap → Map
-
def
putAll(arg0: Map[_ <: K, _ <: V]): Unit
- Definition Classes
- AbstractMap → Map
-
def
putIfAbsent(arg0: K, arg1: V): V
- Definition Classes
- Map
-
def
remove(arg0: Any): V
- Definition Classes
- AbstractMap → Map
-
def
remove(arg0: Any, arg1: Any): Boolean
- Definition Classes
- Map
-
def
replace(arg0: K, arg1: V): V
- Definition Classes
- Map
-
def
replace(arg0: K, arg1: V, arg2: V): Boolean
- Definition Classes
- Map
-
def
replaceAll(arg0: BiFunction[_ >: K, _ >: V, _ <: V]): Unit
- Definition Classes
- Map
-
def
size(): Int
****************************************************************************** Return the size (number of keys) in the B+Tree.
****************************************************************************** Return the size (number of keys) in the B+Tree.
- returns
the size of the B+Tree
- Definition Classes
- BpTreeMap2 → AbstractMap → Map
- def stats: (Int, Int, Double)
-
def
subMap(fromKey: K, toKey: K): SortedMap[K, V]
****************************************************************************** Return the portion of the B+Tree map whose keys are between fromKey and toKey, i.e., fromKey <= key < toKey.
****************************************************************************** Return the portion of the B+Tree map whose keys are between fromKey and toKey, i.e., fromKey <= key < toKey.
- returns
the submap with keys in the range [fromKey, toKey)
- Definition Classes
- BpTreeMap2 → SortedMap
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tailMap(fromKey: K): SortedMap[K, V]
****************************************************************************** Return the portion of the B+Tree map where fromKey <= key.
****************************************************************************** Return the portion of the B+Tree map where fromKey <= key.
- returns
the submap with keys in the range [fromKey, lastKey]
- Definition Classes
- BpTreeMap2 → SortedMap
-
def
toString(): String
- Definition Classes
- AbstractMap → AnyRef → Any
-
def
values(): Collection[V]
- Definition Classes
- AbstractMap → Map
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )