org.apache.spark.sql.catalyst.expressions.codegen

CodeGenerator

abstract class CodeGenerator[InType <: AnyRef, OutType <: AnyRef] extends Logging

A base class for generators of byte code to perform expression evaluation. Includes a set of helpers for referring to Catalyst types and building trees that perform evaluation of individual expressions.

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

Instance Constructors

  1. new CodeGenerator()

Abstract Value Members

  1. abstract def bind(in: InType, inputSchema: Seq[Attribute]): InType

    Binds an input expression to a given input schema

    Binds an input expression to a given input schema

    Attributes
    protected
  2. abstract def canonicalize(in: InType): InType

    Canonicalizes an input expression.

    Canonicalizes an input expression. Used to avoid double caching expressions that differ only cosmetically.

    Attributes
    protected
  3. abstract def create(in: InType): OutType

    Generates a class for a given input expression.

    Generates a class for a given input expression. Called when there is not cached code already available.

    Attributes
    protected

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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compile(code: String): GeneratedClass

    Compile the Java source code into a Java class, using Janino.

    Compile the Java source code into a Java class, using Janino.

    Attributes
    protected
  9. def declareAddedFunctions(ctx: CodeGenContext): String

    Attributes
    protected
  10. def declareMutableStates(ctx: CodeGenContext): String

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

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

    Definition Classes
    AnyRef → Any
  13. val exprType: String

    Attributes
    protected
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def generate(expressions: InType): OutType

    Generates the requested evaluator given already bound expression(s).

  16. def generate(expressions: InType, inputSchema: Seq[Attribute]): OutType

    Generates the requested evaluator binding the given expression(s) to the inputSchema.

  17. val genericMutableRowType: String

    Attributes
    protected
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def initMutableStates(ctx: CodeGenContext): String

    Attributes
    protected
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  23. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  28. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  29. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  30. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  31. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  32. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  33. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  34. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  35. val mutableRowType: String

    Attributes
    protected
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def newCodeGenContext(): CodeGenContext

    Create a new codegen context for expression evaluator, used to store those expressions that don't support codegen

  38. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  41. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped