Attribute

wvlet.airframe.sql.model.Attribute
trait Attribute extends LeafExpression with LogSupport

Attribute is used for column names of relational table inputs and outputs

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

Sub Attributes used to generate this Attribute

Sub Attributes used to generate this Attribute

Attributes

def name: String
def qualifier: Option[String]

Returns the unmodified source columns referenced by this Attribute

Returns the unmodified source columns referenced by this Attribute

Attributes

def withQualifier(newQualifier: Option[String]): Attribute

Concrete methods

def alias: Option[String]
override def attributeName: String

Column name without qualifier

Column name without qualifier

Attributes

Definition Classes
def fullName: String
def matched(columnPath: ColumnPath): Option[Attribute]

If a given column name matches with this Attribute, return this. If there are multiple candidate attributes (e.g., via Join, Union), return MultiSourceAttribute.

If a given column name matches with this Attribute, return this. If there are multiple candidate attributes (e.g., via Join, Union), return MultiSourceAttribute.

Attributes

def matchesWith(columnPath: ColumnPath): Boolean

Return true if this Attribute matches with a given column path

Return true if this Attribute matches with a given column path

Attributes

def prefix: String
def setQualifierIfEmpty(newQualifier: Option[String]): Attribute
def withAlias(newAlias: String): Attribute
def withAlias(newAlias: Option[String]): Attribute
def withQualifier(newQualifier: String): Attribute

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
override def children: Seq[Expression]

Attributes

Definition Classes
Inherited from:
LeafExpression
def collectExpressions(cond: PartialFunction[Expression, Boolean]): List[Expression]

Attributes

Inherited from:
Expression

Attributes

Inherited from:
Expression

Attributes

Inherited from:
Expression
def dataTypeName: String

Attributes

Inherited from:
Expression
inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods

Attributes

Returns:

the code location in the SQL text if available

Inherited from:
TreeNode
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product
def resolvedChildren: Boolean

Attributes

Inherited from:
Expression
def resolvedInputs: Boolean

Attributes

Inherited from:
Expression
def sqlExpr: String

Attributes

Inherited from:
Expression
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def transformExpression(rule: PartialFunction[Expression, Expression]): Expression

Recursively transform the expression in breadth-first order

Recursively transform the expression in breadth-first order

Attributes

Inherited from:
Expression
def transformPlan(rule: PartialFunction[LogicalPlan, LogicalPlan]): Expression

Attributes

Inherited from:
Expression

Recursively transform the expression in depth-first order

Recursively transform the expression in depth-first order

Attributes

Inherited from:
Expression
def traverseExpressions[U](rule: PartialFunction[Expression, U]): Unit

Attributes

Inherited from:
Expression
def traversePlan[U](rule: PartialFunction[LogicalPlan, U]): Unit

Attributes

Inherited from:
Expression
def traversePlanOnce[U](rule: PartialFunction[LogicalPlan, U]): Unit

Attributes

Inherited from:
Expression
def typeDescription: String
  • Returns "(name):(type)" of this attribute

Attributes

Inherited from:
Expression
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods

Inherited fields

lazy val resolved: Boolean

Attributes

Inherited from:
Expression