SqlColumn

edu.gemini.grackle.sql.SqlMappingLike.SqlColumn$
See theSqlColumn companion trait
object SqlColumn

Attributes

Companion:
trait
Source:
SqlMapping.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class CountColumn(col: SqlColumn, cols: List[SqlColumn]) extends SqlColumn

Representation of COUNT aggregation

Representation of COUNT aggregation

Attributes

Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any
case class DerivedColumn(owner: ColumnOwner, col: SqlColumn) extends SqlColumn

Representation of a derived column

Representation of a derived column

Used to represent columns on the outside of subqueries and common table expressions. Note that column aliases are tracked across derivation so that derived columns will continue to refer to the same underlying data irrespective of renaming.

Attributes

Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any
case class EmbeddedColumn(owner: ColumnOwner, col: SqlColumn) extends SqlColumn

Representation of a column of an embedded subobject

Representation of a column of an embedded subobject

Columns of embedded subobjects have a different context path from columns of their enclosing object, however they resolve to columns of the same SqlSelect. To satisfy the SqlSelect invariant that all its columns must share the same context path we have to wrap the embedded column so that its context path conforms.

Attributes

Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any
case class NullColumn(owner: ColumnOwner, col: SqlColumn) extends SqlColumn

Representation of a synthetic null column

Representation of a synthetic null column

Primarily used to pad the disjuncts of an SqlUnion.

Attributes

Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any
case class PartitionColumn(owner: ColumnOwner, column: String, partitionCols: List[SqlColumn], orders: List[OrderSelection[_]]) extends SqlColumn

Representation of a window aggregation

Representation of a window aggregation

Attributes

Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any
case class SubqueryColumn(col: SqlColumn, subquery: SqlSelect) extends SqlColumn

Representation of a scalar subquery

Representation of a scalar subquery

Attributes

Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any
case class TableColumn(owner: ColumnOwner, cr: ColumnRef, resultPath: List[String]) extends SqlColumn

Representation of a column of a table/view

Representation of a column of a table/view

Attributes

Companion:
object
Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
SqlMapping.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def mkDefFragment(prefix: Option[String], base: String, collated: Boolean, alias: String): Fragment

Attributes

Source:
SqlMapping.scala
def mkDefFragment(base: Fragment, collated: Boolean, alias: String): Fragment

Attributes

Source:
SqlMapping.scala
def mkRefFragment(prefix: Option[String], alias: String, collated: Boolean): Fragment

Attributes

Source:
SqlMapping.scala