org.apache.spark.sql.catalyst.expressions

codegen

package codegen

A collection of generators that build custom bytecode at runtime for performing the evaluation of catalyst expression.

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

Type Members

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

    A base class for generators of byte code to perform expression evaluation.

    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.

  2. class IntegerHashSet extends OpenHashSet[Int]

  3. class LongHashSet extends OpenHashSet[Long]

Value Members

  1. object DumpByteCode

    :: DeveloperApi :: Dumps the bytecode from a class to the screen using javap.

    :: DeveloperApi :: Dumps the bytecode from a class to the screen using javap.

    Annotations
    @DeveloperApi()
  2. object ExpressionCanonicalizer extends RuleExecutor[Expression]

    Canonicalizes an expression so those that differ only by names can reuse the same code.

  3. object GenerateMutableProjection extends CodeGenerator[Seq[Expression], () ⇒ MutableProjection]

    Generates byte code that produces a MutableRow object that can update itself based on a new input Row for a fixed set of Expressions.

  4. object GenerateOrdering extends CodeGenerator[Seq[SortOrder], Ordering[Row]] with Logging

    Generates bytecode for an Ordering of Rows for a given set of Expressions.

  5. object GeneratePredicate extends CodeGenerator[Expression, (Row) ⇒ Boolean]

    Generates bytecode that evaluates a boolean Expression on a given input Row.

  6. object GenerateProjection extends CodeGenerator[Seq[Expression], Projection]

    Generates bytecode that produces a new Row object based on a fixed set of input Expressions and a given input Row.

    Generates bytecode that produces a new Row object based on a fixed set of input Expressions and a given input Row. The returned Row object is custom generated based on the output types of the Expression to avoid boxing of primitive values.

  7. val globalLock: ScalaReflectionLock.type

    A lock to protect invoking the scala compiler at runtime, since it is not thread safe in Scala 2.10.

    A lock to protect invoking the scala compiler at runtime, since it is not thread safe in Scala 2.10.

    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped