scray.querying.queries.CostEstimationInfo.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
package scray.querying.queries
import scala.collection.mutable.MutableList
object CostEstimationInfo {
val estimatedCosts: MutableList[Long => Long] = new MutableList[Long => Long]()
def addNewCosts(costs: Long => Long) {
estimatedCosts += costs
}
def getCosts(): Double = {
estimatedCosts.reverse.foldLeft(0L)((b, a) => a.apply(b))
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy