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

Type Members

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

    Permalink

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 attributesFor[T](implicit arg0: scala.reflect.api.Universe.TypeTag[T]): Seq[Attribute]

    Permalink

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

  6. def clone(): AnyRef

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

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

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

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

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

    Permalink

    Returns the full class name for a type.

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

    Permalink

    Returns classes of input parameters of scala function object.

  13. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  15. 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

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

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

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    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.

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped