Trait/Object

org.apache.spark.sql.catalyst

ScalaReflection

Related Docs: object ScalaReflection | package catalyst

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    The mirror used to access types in the universe

  2. abstract val universe: Universe

    Permalink

    The universe we work in (runtime or macro)

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def cleanUpReflectionObjects[T](func: ⇒ T): T

    Permalink

    Any codes calling scala.reflect.api.Types.TypeApi.<:< should be wrapped by this method to clean up the Scala reflection garbage automatically.

    Any codes calling scala.reflect.api.Types.TypeApi.<:< should be wrapped by this method to clean up the Scala reflection garbage automatically. Otherwise, it will leak some objects to scala.reflect.runtime.JavaUniverse.undoLog.

    This method will also wrap func with ScalaReflectionLock.synchronized so the caller doesn't need to call it again.

    See also

    https://github.com/scala/bug/issues/8302

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def constructParams(tpe: scala.reflect.api.Universe.Type): Seq[scala.reflect.api.Universe.Symbol]

    Permalink
    Attributes
    protected
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink

    Returns the full class name for a type.

    Returns the full class name for a type. The returned name is the canonical Scala name, where each component is separated by a period. It is NOT the Java-equivalent runtime name (no dollar signs).

    In simple cases, both the Scala and Java names are the same, however when Scala generates constructs that do not map to a Java equivalent, such as singleton objects or nested classes in package objects, it uses the dollar sign ($) to create synthetic classes, emulating behaviour in Java bytecode.

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

    Permalink

    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.

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

    Permalink

    Returns classes of input parameters of scala function object.

  15. def hashCode(): Int

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

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped