Packages

implicit class AttributeSeq extends Serializable

Helper functions for working with Seq[Attribute].

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AttributeSeq
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AttributeSeq(attrs: Seq[Attribute])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(ordinal: Int): Attribute

    Returns the attribute at the given index.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val attrs: Seq[Attribute]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def getCandidatesForResolution(nameParts: Seq[String], resolver: Resolver): (Seq[Attribute], Seq[String])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def indexOf(exprId: ExprId): Int

    Returns the index of first attribute with a matching expression id, or -1 if no match exists.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. def resolve(nameParts: Seq[String], resolver: Resolver): Option[NamedExpression]

    Resolve nameParts into a specific NamedExpression using the provided resolver.

    Resolve nameParts into a specific NamedExpression using the provided resolver.

    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.

  19. def resolveCandidates(nameParts: Seq[String], resolver: Resolver, candidates: Seq[Attribute], nestedFields: Seq[String]): Seq[NamedExpression]
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def toStructType: StructType

    Creates a StructType with a schema matching this Seq[Attribute].

  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped