ompute.logical-plan.0.2.1.source-code.Projection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logical-plan Show documentation
Show all versions of logical-plan Show documentation
JVM query engine based on Apache Arrow
package org.ballistacompute.logical
import org.ballistacompute.datatypes.Schema
/**
* Logical plan representing a projection (evaluating a list of expressions) against an input
*/
class Projection(val input: LogicalPlan, val expr: List): LogicalPlan {
override fun schema(): Schema {
return Schema(expr.map { it.toField(input) })
}
override fun children(): List {
return listOf(input)
}
override fun toString(): String {
return "Projection: ${ expr.map { it.toString() }.joinToString(", ") }"
}
}