Object

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

GenerateUnsafeProjection

Related Doc: package codegen

Permalink

object GenerateUnsafeProjection extends CodeGenerator[Seq[Expression], UnsafeProjection]

Generates a Projection that returns an UnsafeRow.

It generates the code for all the expressions, compute the total length for all the columns (can be accessed via variables), and then copy the data into a scratch buffer space in the form of UnsafeRow (the scratch buffer will grow as needed).

Note: The returned UnsafeRow will be pointed to a scratch buffer inside the projection.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GenerateUnsafeProjection
  2. CodeGenerator
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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 bind(in: Seq[Expression], inputSchema: Seq[Attribute]): Seq[Expression]

    Permalink

    Binds an input expression to a given input schema

    Binds an input expression to a given input schema

    Attributes
    protected
    Definition Classes
    GenerateUnsafeProjectionCodeGenerator
  6. def canSupport(dataType: DataType): Boolean

    Permalink

    Returns true iff we support this data type.

  7. def canonicalize(in: Seq[Expression]): Seq[Expression]

    Permalink

    Canonicalizes an input expression.

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

    Attributes
    protected
    Definition Classes
    GenerateUnsafeProjectionCodeGenerator
  8. def clone(): AnyRef

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

    Permalink

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

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

    Attributes
    protected
    Definition Classes
    CodeGenerator
  10. def create(expressions: Seq[Expression]): UnsafeProjection

    Permalink

    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
    Definition Classes
    GenerateUnsafeProjectionCodeGenerator
  11. def createCode(ctx: CodeGenContext, expressions: Seq[Expression]): GeneratedExpressionCode

    Permalink
  12. def declareAddedFunctions(ctx: CodeGenContext): String

    Permalink
    Attributes
    protected
    Definition Classes
    CodeGenerator
  13. def declareMutableStates(ctx: CodeGenContext): String

    Permalink
    Attributes
    protected
    Definition Classes
    CodeGenerator
  14. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. val exprType: String

    Permalink
    Attributes
    protected
    Definition Classes
    CodeGenerator
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def genAdditionalSize(dt: DataType, ev: GeneratedExpressionCode): String

    Permalink
  19. def genFieldWriter(ctx: CodeGenContext, fieldType: DataType, ev: GeneratedExpressionCode, target: String, index: Int, cursor: String): String

    Permalink
  20. def generate(expressions: Seq[Expression]): UnsafeProjection

    Permalink

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

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

    Definition Classes
    CodeGenerator
  21. def generate(expressions: Seq[Expression], inputSchema: Seq[Attribute]): UnsafeProjection

    Permalink

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

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

    Definition Classes
    CodeGenerator
  22. val genericMutableRowType: String

    Permalink
    Attributes
    protected
    Definition Classes
    CodeGenerator
  23. final def getClass(): Class[_]

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    CodeGenerator
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def log: Logger

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def logName: String

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. val mutableRowType: String

    Permalink
    Attributes
    protected
    Definition Classes
    CodeGenerator
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. def newCodeGenContext(): CodeGenContext

    Permalink

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

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

    Definition Classes
    CodeGenerator
  43. final def notify(): Unit

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

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

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

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

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

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

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

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped