DimensionalBaseConstructorParams

intervalidus.DimensionalBaseConstructorParams

Parameters for constructing data in multidimensional intervals.

Attributes

Source
DimensionalBase.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Data
object Data
object DataMonoid
object DataMonoid
object DataMulti
object DataMulti
Show all

Members list

Value members

Concrete methods

protected def constructorParams[V, D <: NonEmptyTuple](initialData: Iterable[ValidData[V, D]])(using domainValue: DomainLike[D])(using Experimental): (TreeMap[D, ValidData[V, D]], MultiMapSorted[V, ValidData[V, D]], BoxTree[ValidData[V, D]])

Given a collection of valid data, returns data used to populate the dataByStartAsc, dataByValue, and dataInSearchTree internal data structures.

Given a collection of valid data, returns data used to populate the dataByStartAsc, dataByValue, and dataInSearchTree internal data structures.

Type parameters

D

the domain type -- a non-empty tuple that is DomainLike.

V

the type of the value managed as data.

Value parameters

initialData

a collection of values valid within intervals -- intervals must be disjoint.

Attributes

Returns

tuple of TreeMap data, MultiMapSorted data, and BoxTree data used when constructing something that is a DimensionalBase and has overridden dataByStartAsc, dataByValue, and dataInSearchTree in the constructor.

Note

A tight boundary around the origin with a capacity large enough to contain the initial data is used. Benchmarks have shown that a tightly-defined capacity has better insert performance even if it has to be resized at some point.

Source
DimensionalBase.scala