
scray.querying.source.costs.LinearQueryCostFuntionFactory.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scray-querying Show documentation
Show all versions of scray-querying Show documentation
query engine core source code
The newest version!
package scray.querying.source.costs
import scray.querying.queries.DomainQuery
import scray.querying.source.Source
import scray.querying.source.SimpleHashJoinSource
object LinearQueryCostFuntionFactory {
implicit object defaultFactory extends QueryCostFunctionFactory {
override def getCostFunction[Q <: DomainQuery, T](source: Source[Q, T]): CostFunction[Q] = source match {
case hashJoinSource: SimpleHashJoinSource[a, b, c] => new LinearSimpleHashJoinCosts(hashJoinSource, this)
//case keyValueSource: KeyValueSource[k,v] => new KeyValueSourceCosts(keyValueSource, this)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy