BpTreeMultiMap
The BpTreeMultiMap
class provides tree maps that use the B+Tree algorithm. It build on BpTreeMap
allowing values to multi-valued Set [V]
and can be used for building Non-Unique Indices.
Type parameters
- K
-
the type of the keys contained in this tree map
- V
-
the base-type of the values assigned to keys in this tree map
Value parameters
- ord
-
the implicit ordering used to compare objects of type K
- order
-
the number of order (maximum number of children) of the tree
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Shrinkable[ValueType]trait Clearabletrait Cloneabletrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
The TreeIterator
inner class supports iterating over all the elements in a B+Tree by traversing through the LEAF nodes of the tree.
The TreeIterator
inner class supports iterating over all the elements in a B+Tree by traversing through the LEAF nodes of the tree.
Value parameters
- js
-
the starting within node index (defaults to -1)
- ns
-
the starting leaf node (defaults to first)
Attributes
- Inherited from:
- BpTreeMap
- Supertypes
Value members
Concrete methods
Add one key-value pair into this tree map and return this (called by put). The addOne method adds a set of values, whereas addOne1 adds a single value.
Add one key-value pair into this tree map and return this (called by put). The addOne method adds a set of values, whereas addOne1 adds a single value.
Value parameters
- elem
-
the key-value pair to add/insert for an individual value
Attributes
Inherited methods
Attributes
- Definition Classes
-
SortedMapOps -> MapOps
- Inherited from:
- SortedMapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Growable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Growable
Add one key-value pair into this B+Tree and return this. Called by the put method in AbstractMap
. Note: it splits the node that overflows
Add one key-value pair into this B+Tree and return this. Called by the put method in AbstractMap
. Note: it splits the node that overflows
Value parameters
- elem
-
the key-value pair to add/insert
Attributes
- Inherited from:
- BpTreeMap
Attributes
- Definition Classes
-
MapOps -> IterableOnceOps
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
PartialFunction -> Function1
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
MapOps -> PartialFunction
- Inherited from:
- MapOps
Attributes
- Inherited from:
- Map
Remove the one element (key-value pair) with the given key and return whether it matches the value expected.
Remove the one element (key-value pair) with the given key and return whether it matches the value expected.
Value parameters
- key
-
the key whose element is to be removed
- value
-
the value expected of the removed element
Attributes
- Inherited from:
- BpTreeMap
Attributes
- Inherited from:
- MapOps
Create a copy of the receiver object.
Create a copy of the receiver object.
The default implementation of the clone
method is platform dependent.
Attributes
- Returns
-
a copy of the receiver object.
- Note
-
not specified by SLS as a member of AnyRef
- Definition Classes
-
MapOps -> Cloneable -> Object
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SortedMapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
SortedMapOps -> MapOps
- Inherited from:
- SortedMapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
SortedMapFactoryDefaults -> IterableOps
- Inherited from:
- SortedMapFactoryDefaults
Return whether this B+Tree has the same entries, (key, value) pairs, (in the same order) as another sorted map.
Return whether this B+Tree has the same entries, (key, value) pairs, (in the same order) as another sorted map.
Value parameters
- that
-
the other sorted map
Attributes
- Inherited from:
- BpTreeMap
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
SortedMap -> Map -> Equals -> Any
- Inherited from:
- SortedMap
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Find the given key in this B+tree and return its corresponding value. Calls the recursive findp method.
Find the given key in this B+tree and return its corresponding value. Calls the recursive findp method.
Value parameters
- key
-
the key to find
Attributes
- Inherited from:
- BpTreeMap
Attributes
- Inherited from:
- IterableOnceOps
Find the first (key, value) pair whose key is larger than (beyond) the search key (skey).
Find the first (key, value) pair whose key is larger than (beyond) the search key (skey).
Value parameters
- skey
-
the search key
Attributes
- Inherited from:
- BpTreeMap
Find the last (key, value) pair whose key is smaller than (below) the search key (skey).
Find the last (key, value) pair whose key is smaller than (below) the search key (skey).
Value parameters
- skey
-
the search key
Attributes
- Inherited from:
- BpTreeMap
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SortedMapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
-
SortedMapFactoryDefaults -> IterableOps
- Inherited from:
- SortedMapFactoryDefaults
Return the value associated with the key by looking it up in this B+Tree.
Return the value associated with the key by looking it up in this B+Tree.
Value parameters
- key
-
the key used for look up
Attributes
- Inherited from:
- BpTreeMap
Get the first value in the B+Tree (note ref(0) points at next leaf node).
Get the first value in the B+Tree (note ref(0) points at next leaf node).
Attributes
- Inherited from:
- BpTreeMap
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
- Returns
-
the hash code value for this object.
- Definition Classes
-
Map -> Any
- Inherited from:
- Map
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
Iterable -> Iterable -> IterableOps
- Inherited from:
- Iterable
Return an iterator for retrieving all the elements in this B+Tree.
Return an iterator for retrieving all the elements in this B+Tree.
Attributes
- See also
-
scala.collection.IterableOnce
- Inherited from:
- BpTreeMap
Return an iterator for retrieving all the elements in this B+Tree starting from key start. Returns null if all keys in tree are smaller than start.
Return an iterator for retrieving all the elements in this B+Tree starting from key start. Returns null if all keys in tree are smaller than start.
Value parameters
- start
-
the key to start with (inclusive)
Attributes
- See also
-
scala.collection.SortedMapOps
- Inherited from:
- BpTreeMap
Attributes
- Definition Classes
-
SortedMapOps -> MapOps
- Inherited from:
- SortedMapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Return an iterator for retrieving all the keys in this B+Tree starting from key start.
Return an iterator for retrieving all the keys in this B+Tree starting from key start.
Value parameters
- start
-
the key to start with
Attributes
- See also
-
scala.collection.SortedMapOps
- Inherited from:
- BpTreeMap
Attributes
- Definition Classes
-
MapOps -> Growable -> IterableOnce
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- SortedMapOps
Attributes
- Definition Classes
-
Map -> Map -> MapOps
- Inherited from:
- Map
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
-
SortedMapFactoryDefaults -> IterableOps
- Inherited from:
- SortedMapFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
The SortedMap
trait requires Ordering
with a compare method to be defined.
The SortedMap
trait requires Ordering
with a compare method to be defined.
Attributes
- See also
-
ValueType.scala in
scalation.package
- Inherited from:
- BpTreeMap
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SortedOps
Return the submap starting at from and ending before until.
Return the submap starting at from and ending before until.
Value parameters
- from
-
the starting key (inclusive)
- until
-
the ending key (exclusive)
Attributes
- See also
-
scala.collection.SortedOps
- Inherited from:
- BpTreeMap
Attributes
- Inherited from:
- SortedOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- SortedMap
Attributes
- Inherited from:
- Cloneable
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Show/print this B+Tree.
Show/print this B+Tree's leaf node links.
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
SortedMap -> SortedMap -> SortedMapOps
- Inherited from:
- SortedMap
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- Shrinkable
Subtract/remove the one element (key-value pair) with the given key. Called by the remove method in AbstractMap
.
Subtract/remove the one element (key-value pair) with the given key. Called by the remove method in AbstractMap
.
Value parameters
- key
-
the key whose element is to be removed
Attributes
- Inherited from:
- BpTreeMap
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Map -> Function1 -> Iterable -> Any
- Inherited from:
- Map
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
SortedMap -> SortedMapOps -> SortedMap -> SortedMapOps
- Inherited from:
- SortedMap
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- SortedMapOps
Attributes
- Definition Classes
-
MapOps -> IterableOps
- Inherited from:
- MapOps
Attributes
- Definition Classes
-
SortedMap -> Map
- Inherited from:
- SortedMap
Attributes
- Definition Classes
-
SortedMap -> Map
- Inherited from:
- SortedMap
Attributes
- Definition Classes
-
SortedMapFactoryDefaults -> IterableOps
- Inherited from:
- SortedMapFactoryDefaults
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ with an explicit collection argument instead of + with varargs - Definition Classes
-
SortedMapOps -> MapOps
- Inherited from:
- SortedMapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Consider requiring an immutable Map or fall back to Map.concat - Definition Classes
-
SortedMapOps -> MapOps
- Inherited from:
- SortedMapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Growable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use -- or removeAll on an immutable Map - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use - or remove on an immutable Map - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Consider requiring an immutable Map. - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.3]
Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Shrinkable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ordering.compare instead - Inherited from:
- SortedOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .view.filterKeys(f). A future version will include a strict version of this method (for now, .view.filterKeys(p).toMap). - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use rangeFrom - Inherited from:
- SortedOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap). - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use filterInPlace instead - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use rangeTo - Inherited from:
- SortedOps
Attributes
- Deprecated
-
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use mapValuesInPlace instead - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use rangeUntil - Inherited from:
- SortedOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use m.clone().addOne((k,v)) instead of m.updated(k, v) - Definition Classes
-
SortedMapOps -> MapOps
- Inherited from:
- SortedMapOps