org.apache.spark.sql.catalyst

ScalaReflection

trait ScalaReflection extends AnyRef

Support for generating catalyst schemas for scala objects. Note that unlike its companion object, this trait able to work in both the runtime and the compile time (macro) universe.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaReflection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Schema(dataType: DataType, nullable: Boolean) extends Product with Serializable

Abstract Value Members

  1. abstract def mirror: scala.reflect.api.Universe.Mirror

    The mirror used to access types in the universe

  2. abstract val universe: Universe

    The universe we work in (runtime or macro)

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def attributesFor[T](implicit arg0: scala.reflect.api.Universe.TypeTag[T]): Seq[Attribute]

    Returns a Sequence of attributes for the given case class type.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getClassNameFromType(tpe: scala.reflect.api.Universe.Type): String

    Returns the full class name for a type.

  14. def getConstructorParameters(tpe: scala.reflect.api.Universe.Type): Seq[(String, scala.reflect.api.Universe.Type)]

    Returns the parameter names and types for the primary constructor of this type.

    Returns the parameter names and types for the primary constructor of this type.

    Note that it only works for scala classes with primary constructor, and currently doesn't support inner class.

  15. def getParameterTypes(func: AnyRef): Seq[Class[_]]

    Returns classes of input parameters of scala function object.

  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def localTypeOf[T](implicit arg0: scala.reflect.api.Universe.TypeTag[T]): scala.reflect.api.Universe.Type

    Return the Scala Type for T in the current classloader mirror.

    Return the Scala Type for T in the current classloader mirror.

    Use this method instead of the convenience method universe.typeOf, which assumes that all types can be found in the classloader that loaded scala-reflect classes. That's not necessarily the case when running using Eclipse launchers or even Sbt console or test (without fork := true).

    See also

    SPARK-5281

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def schemaFor(tpe: scala.reflect.api.Universe.Type): Schema

    Returns a catalyst DataType and its nullability for the given Scala Type using reflection.

  23. def schemaFor[T](implicit arg0: scala.reflect.api.Universe.TypeTag[T]): Schema

    Returns a catalyst DataType and its nullability for the given Scala Type using reflection.

  24. def silentSchemaFor(tpe: scala.reflect.api.Universe.Type): Schema

    Returns a catalyst DataType and its nullability for the given Scala Type using reflection.

    Returns a catalyst DataType and its nullability for the given Scala Type using reflection.

    Unlike schemaFor, this method won't throw exception for un-supported type, it will return NullType silently instead.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped