Packages

o

com.sparkutils.quality.impl

GenerateDecoderOpEncoderVarProjection

object GenerateDecoderOpEncoderVarProjection extends CodeGenerator[Seq[Expression], DecoderOpEncoderProjection[_, _]]

CODE is based on MutableProjection, but uses currentVars and wholestage elimination and generates a transformation between two encoders over a middle operation. The generated class itself can create new instances directly, unlike Spark projections that need to go through the codegen source generation cycle, only the compilation is cached.

If the expression tree contains stateful expressions with codegenfallback the code must be regenerated against a fresh tree.

Linear Supertypes
CodeGenerator[Seq[Expression], DecoderOpEncoderProjection[_, _]], Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenerateDecoderOpEncoderVarProjection
  2. CodeGenerator
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bind(in: Seq[Expression], inputSchema: Seq[Attribute]): Seq[Expression]
    Attributes
    protected
    Definition Classes
    GenerateDecoderOpEncoderVarProjection → CodeGenerator
  7. def canonicalize(in: Seq[Expression]): Seq[Expression]
    Attributes
    protected
    Definition Classes
    GenerateDecoderOpEncoderVarProjection → CodeGenerator
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. def create[I, O](expressions: Seq[Expression], toSize: Int, allOrdinals: Set[Int])(implicit arg0: Encoder[I], arg1: Encoder[O]): DecoderOpEncoderProjection[I, O]
  10. def create(expressions: Seq[Expression]): DecoderOpEncoderProjection[_, _]
    Attributes
    protected
    Definition Classes
    GenerateDecoderOpEncoderVarProjection → CodeGenerator
  11. def debug(row: InternalRow, any: Any): Unit
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def evaluateVariables(variables: Seq[ExprCode]): String
    Attributes
    protected
  15. def functions(ctx: CodegenContext, allExpr: Seq[(Expression, (CodegenContext, ParameterInformation) => Block)], params: ParameterInformation, prefix: String, extraConfig: Map[String, String] = Map.empty): String
    Attributes
    protected
  16. def generate(expressions: Seq[Expression]): DecoderOpEncoderProjection[_, _]
    Definition Classes
    CodeGenerator
  17. def generate(expressions: Seq[Expression], inputSchema: Seq[Attribute]): DecoderOpEncoderProjection[_, _]
    Definition Classes
    CodeGenerator
  18. def generateExpressions(ctx: CodegenContext, expressions: Seq[Expression], subExprState: Map[ExpressionEquals, SubExprEliminationState]): Seq[(Expression, ExprCode)]
  19. val genericMutableRowType: String
    Attributes
    protected
    Definition Classes
    CodeGenerator
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  22. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  23. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  26. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  27. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  41. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  50. def newCodeGenContext(): CodegenContext
    Definition Classes
    CodeGenerator
  51. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  52. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  53. def projections(ctx: CodegenContext, expressions: Seq[Expression], mutableRow: String, subExprState: Map[ExpressionEquals, SubExprEliminationState] = Map.empty): Seq[(ExprCode, (Expression, Block), (Expression, Block))]
  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from CodeGenerator[Seq[Expression], DecoderOpEncoderProjection[_, _]]

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped