log4j.logger.org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator=DEBUG
CodeGenerator
CodeGenerator
is a base class for generators of JVM bytecode for expression evaluation.
Name | Description |
---|---|
Guava’s LoadingCache with at most 100 pairs of |
|
Tip
|
Enable Add the following line to Refer to Logging. |
CodeGenerator Contract
package org.apache.spark.sql.catalyst.expressions.codegen
abstract class CodeGenerator[InType, OutType] {
def create(in: InType): OutType
def canonicalize(in: InType): InType
def bind(in: InType, inputSchema: Seq[Attribute]): InType
def generate(expressions: InType, inputSchema: Seq[Attribute]): OutType
def generate(expressions: InType): OutType
}
Method | Description |
---|---|
Generates an evaluator for expression(s) that may (optionally) have expression(s) bound to a schema (i.e. a collection of Attribute). Used in:
|
create
Method
create(references: Seq[Expression]): UnsafeProjection
Caution
|
FIXME |
Note
|
|
Creating CodegenContext — newCodeGenContext
Method
newCodeGenContext(): CodegenContext
newCodeGenContext
simply creates a new CodegenContext.
Note
|
|