implicit class AttributeSeq extends Serializable
Helper functions for working with Seq[Attribute].
- Alphabetic
- By Inheritance
- AttributeSeq
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def apply(ordinal: Int): Attribute
Returns the attribute at the given index.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attrs: Seq[Attribute]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def getCandidatesForResolution(nameParts: Seq[String], resolver: Resolver): (Seq[Attribute], Seq[String])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def indexOf(exprId: ExprId): Int
Returns the index of first attribute with a matching expression id, or -1 if no match exists.
- 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
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def resolve(nameParts: Seq[String], resolver: Resolver): Option[NamedExpression]
Resolve
namePartsinto a specific NamedExpression using the providedresolver.Resolve
namePartsinto a specific NamedExpression using the providedresolver.This method finds all suitable candidates for the resolution based on the name matches and checks if the nested fields are requested. - If there's only one match and nested fields are requested, wrap the matched attribute with ExtractValue, and recursively wrap that with additional ExtractValues for each nested field. In the end, alias the final expression with the last nested field name. - If there's only one match and no nested fields are requested, return the matched attribute. - If there are no matches, return None. - If there is more than one match, throw QueryCompilationErrors.ambiguousReferenceError.
- def resolveCandidates(nameParts: Seq[String], resolver: Resolver, candidates: Seq[Attribute], nestedFields: Seq[String]): Seq[NamedExpression]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toStructType: StructType
Creates a StructType with a schema matching this
Seq[Attribute]. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)