LogicalPlan

wvlet.airframe.sql.model.LogicalPlan$
See theLogicalPlan companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class AddColumn(table: QName, column: ColumnDef, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Aggregate(child: Relation, selectItems: List[Attribute], groupingKeys: List[GroupingKey], having: Option[Expression], nodeLocation: Option[NodeLocation]) extends UnaryRelation with Selection

Attributes

Graph
Supertypes
trait Serializable
trait Selection
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class AliasedRelation(child: Relation, alias: Identifier, columnNames: Option[Seq[String]], nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class CreateSchema(schema: QName, ifNotExists: Boolean, properties: Option[Seq[SchemaProperty]], nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class CreateTable(table: QName, ifNotExists: Boolean, tableElems: Seq[TableElement], nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class CreateTableAs(table: QName, ifNotEotExists: Boolean, columnAliases: Option[Seq[Identifier]], query: Relation, nodeLocation: Option[NodeLocation]) extends DDL with Update with UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait Update
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class CreateView(viewName: QName, replace: Boolean, query: Relation, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case object CrossJoin extends JoinType

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JoinType
class Object
trait Matchable
class Any
Self type
sealed trait DDL extends LogicalPlan with LeafPlan with SQLSig

Attributes

Graph
Supertypes
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
case class Delete(table: QName, where: Option[Expression], nodeLocation: Option[NodeLocation]) extends Update with LeafPlan

Attributes

Graph
Supertypes
trait Serializable
trait LeafPlan
trait Update
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Distinct(child: Relation, nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DropColumn(table: QName, column: Identifier, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DropSchema(schema: QName, ifExists: Boolean, cascade: Boolean, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DropTable(table: QName, ifExists: Boolean, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DropView(viewName: QName, ifExists: Boolean, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class EmptyRelation(nodeLocation: Option[NodeLocation]) extends Relation with LeafPlan

Attributes

Graph
Supertypes
trait Serializable
trait LeafPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Except(left: Relation, right: Relation, nodeLocation: Option[NodeLocation]) extends SetOperation

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Filter(child: Relation, filterExpr: Expression, nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case object FullOuterJoin extends JoinType

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JoinType
class Object
trait Matchable
class Any
Self type
case object ImplicitJoin extends JoinType

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JoinType
class Object
trait Matchable
class Any
Self type
case object InnerJoin extends JoinType

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JoinType
class Object
trait Matchable
class Any
Self type
case class InsertInto(table: QName, columnAliases: Option[Seq[Identifier]], query: Relation, nodeLocation: Option[NodeLocation]) extends Update with UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait Update
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Intersect(relations: Seq[Relation], nodeLocation: Option[NodeLocation]) extends SetOperation

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Join(joinType: JoinType, left: Relation, right: Relation, cond: JoinCriteria, nodeLocation: Option[NodeLocation]) extends Relation

Attributes

Graph
Supertypes
trait Serializable
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed abstract class JoinType(val symbol: String)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CrossJoin.type
object FullOuterJoin.type
object ImplicitJoin.type
object InnerJoin.type
object LeftOuterJoin.type
object RightOuterJoin.type
case class Lateral(query: Relation, nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class LateralView(child: Relation, exprs: Seq[Expression], tableAlias: Identifier, columnAliases: Seq[Identifier], nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case object LeftOuterJoin extends JoinType

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JoinType
class Object
trait Matchable
class Any
Self type
case class Limit(child: Relation, limit: LongLiteral, nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ParenthesizedRelation(child: Relation, nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Project(child: Relation, selectItems: Seq[Attribute], nodeLocation: Option[NodeLocation]) extends UnaryRelation with Selection

Attributes

Graph
Supertypes
trait Serializable
trait Selection
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Query(withQuery: With, body: Relation, nodeLocation: Option[NodeLocation]) extends Relation

Attributes

Graph
Supertypes
trait Serializable
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class RawSQL(sql: String, nodeLocation: Option[NodeLocation]) extends Relation with LeafPlan

Attributes

Graph
Supertypes
trait Serializable
trait LeafPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
trait Relation extends LogicalPlan with SQLSig

Attributes

Graph
Supertypes
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class Join
class Query
class RawSQL
class Except
class Intersect
class Union
class TableRef
class Aggregate
class Distinct
class Filter
class Lateral
class Limit
class Project
trait Selection
class Sort
class Unnest
class Values
class TableScan
case class RenameColumn(table: QName, column: Identifier, renameTo: Identifier, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class RenameSchema(schema: QName, renameTo: Identifier, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class RenameTable(table: QName, renameTo: QName, nodeLocation: Option[NodeLocation]) extends DDL

Attributes

Graph
Supertypes
trait Serializable
trait DDL
trait LeafPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case object RightOuterJoin extends JoinType

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JoinType
class Object
trait Matchable
class Any
Self type
sealed trait Selection extends UnaryRelation

Attributes

Graph
Supertypes
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class Aggregate
class Project
sealed trait SetOperation extends Relation with LogSupport

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class Except
class Intersect
class Union
case class Sort(child: Relation, orderBy: Seq[SortItem], nodeLocation: Option[NodeLocation]) extends UnaryRelation

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class TableRef(name: QName, nodeLocation: Option[NodeLocation]) extends Relation with LeafPlan

Attributes

Graph
Supertypes
trait Serializable
trait LeafPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed trait UnaryRelation extends Relation with UnaryPlan

Attributes

Graph
Supertypes
trait UnaryPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
case class Union(relations: Seq[Relation], nodeLocation: Option[NodeLocation]) extends SetOperation

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Unnest(columns: Seq[Expression], withOrdinality: Boolean, nodeLocation: Option[NodeLocation]) extends Relation

Attributes

Graph
Supertypes
trait Serializable
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
trait Update extends LogicalPlan with SQLSig

A base trait for all update operations (e.g., add/delete the table contents).

A base trait for all update operations (e.g., add/delete the table contents).

Attributes

Graph
Supertypes
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
case class Values(rows: Seq[Expression], nodeLocation: Option[NodeLocation]) extends Relation with LeafPlan

Attributes

Graph
Supertypes
trait Serializable
trait LeafPlan
trait Relation
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class With(recursive: Boolean, queries: Seq[WithQuery], nodeLocation: Option[NodeLocation]) extends LogicalPlan

Attributes

Graph
Supertypes
trait Serializable
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any
case class WithQuery(name: Identifier, query: Relation, columnNames: Option[Seq[Identifier]], nodeLocation: Option[NodeLocation]) extends LogicalPlan with UnaryPlan

Attributes

Graph
Supertypes
trait Serializable
trait UnaryPlan
trait SQLSig
trait Product
trait Equals
class Object
trait Matchable
class Any