case class SourceQuery(relation: SnowflakeRelation, refColumns: Seq[Attribute], alias: String) extends SnowflakeQuery with Product with Serializable
The query for a base type (representing a table or view).
- relation
The base SnowflakeRelation representing the basic table, view, or subquery defined by the user.
- refColumns
Columns used to override the output generation for the QueryHelper. These are the columns resolved by SnowflakeRelation.
- alias
Query alias.
- Alphabetic
- By Inheritance
- SourceQuery
- Serializable
- Serializable
- Product
- Equals
- SnowflakeQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SourceQuery(relation: SnowflakeRelation, refColumns: Seq[Attribute], alias: String)
- relation
The base SnowflakeRelation representing the basic table, view, or subquery defined by the user.
- refColumns
Columns used to override the output generation for the QueryHelper. These are the columns resolved by SnowflakeRelation.
- alias
Query alias.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val alias: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canJoin(otherTree: SnowflakeQuery): Boolean
Determines if two SnowflakeQuery subtrees can be joined together.
Determines if two SnowflakeQuery subtrees can be joined together.
- otherTree
The other tree, can it be joined with this one?
- returns
True if can be joined, or False if not.
- Definition Classes
- SnowflakeQuery
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
cluster: (String, Option[String], String)
Triplet that defines the Snowflake cluster that houses this base relation.
Triplet that defines the Snowflake cluster that houses this base relation. Currently an exact match on cluster is needed for a join, but we may not need to be this strict.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
expressionToStatement(expr: Expression): SnowflakeSQLStatement
- Definition Classes
- SnowflakeQuery
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find[T](query: PartialFunction[SnowflakeQuery, T]): Option[T]
Finds a particular query type in the overall tree.
Finds a particular query type in the overall tree.
- T
SnowflakeQuery type
- query
PartialFunction defining a positive result.
- returns
Option[T] for one positive match, or None if nothing found.
- Definition Classes
- SourceQuery → SnowflakeQuery
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getStatement(useAlias: Boolean = false): SnowflakeSQLStatement
Converts this query into a String representing the SQL.
Converts this query into a String representing the SQL.
- useAlias
Whether or not to alias this translated block of SQL.
- returns
SQL statement for this query.
- Definition Classes
- SnowflakeQuery
-
val
helper: QueryHelper
- Definition Classes
- SourceQuery → SnowflakeQuery
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
output: Seq[Attribute]
Output columns.
Output columns.
- Definition Classes
- SnowflakeQuery
- val refColumns: Seq[Attribute]
- val relation: SnowflakeRelation
-
val
suffixStatement: SnowflakeSQLStatement
What comes after the FROM clause.
What comes after the FROM clause.
- Definition Classes
- SnowflakeQuery
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()