Package org.partiql.lang.planner

Types

Link copied to clipboard
enum DmlAction : Enum<DmlAction>

Identifies the action to take. TODO This should be represented in the IR grammar - https://github.com/partiql/partiql-lang-kotlin/issues/756

Link copied to clipboard
data class EvaluatorOptions

Specifies options that effect the behavior of the PartiQL physical plan evaluator.

Link copied to clipboard
sealed class GlobalResolutionResult

Indicates the result of an attempt to resolve a global variable to its supplied unique identifier supplied by the application embedding PartiQL.

Link copied to clipboard
fun interface GlobalVariableResolver

Resolves global variables (usually tables) of the current database.

Link copied to clipboard
fun interface PartiQLPhysicalPass : PartiQLPlannerPass<PartiqlPhysical.Plan>
Link copied to clipboard
interface PartiQLPlanner

PartiQLPlanner is responsible for transforming a PartiqlAst.Statement representation of a query into an equivalent PartiqlPhysical.Plan representation of the query.

Link copied to clipboard
class PartiQLPlannerBuilder

Builder class to instantiate a PartiQLPlanner.

Link copied to clipboard
fun interface PartiQLPlannerPass<T : DomainNode>

PartiQLPlannerPass is a transformation of the plan representation of a PartiQL query.

Link copied to clipboard
data class PlannerEvent(eventName: String, input: Any, output: Any, duration: Duration)

Information about a planner event.

Link copied to clipboard
typealias PlannerEventCallback = (PlannerEvent) -> Unit

Called by PartiQLPlanner after a phase of query planning has completed.

Link copied to clipboard
sealed class PlanningProblemDetails : ProblemDetails

Contains detailed information about errors that may occur during query planning.

Link copied to clipboard
fun interface QueryPlan

A query plan that has been compiled and is ready to be evaluated.

Link copied to clipboard
sealed class QueryResult
Link copied to clipboard
fun interface StaticTypeResolver

Identifies a global variable's type, given its uniqueId.

Functions

Link copied to clipboard
fun ProblemHandler.handleUnimplementedFeature(blame: DomainNode, featureName: String)

Convenience function that logs PlanningProblemDetails.UnimplementedFeature to the receiver ProblemHandler handler, putting blame on the specified DomainNode (this is the superclass of all PIG-generated types). "Blame" in this case, means that the line & column number in the metas of blame become the problem's.