Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package apache
    Definition Classes
    org
  • package spark
    Definition Classes
    apache
  • package sql
    Definition Classes
    spark
  • package catalyst

    Catalyst is a library for manipulating relational query plans.

    Catalyst is a library for manipulating relational query plans. All classes in catalyst are considered an internal API to Spark SQL and are subject to change between minor releases.

    Definition Classes
    sql
  • package analysis

    Provides a logical query plan Analyzer and supporting classes for performing analysis.

    Provides a logical query plan Analyzer and supporting classes for performing analysis. Analysis consists of translating UnresolvedAttributes and UnresolvedRelations into fully typed objects using information in a schema Catalog.

    Definition Classes
    catalyst
  • package catalog
    Definition Classes
    catalyst
  • package csv
    Definition Classes
    catalyst
  • package dsl

    A collection of implicit conversions that create a DSL for constructing catalyst data structures.

    A collection of implicit conversions that create a DSL for constructing catalyst data structures.

    scala> import org.apache.spark.sql.catalyst.dsl.expressions._
    
    // Standard operators are added to expressions.
    scala> import org.apache.spark.sql.catalyst.expressions.Literal
    scala> Literal(1) + Literal(1)
    res0: org.apache.spark.sql.catalyst.expressions.Add = (1 + 1)
    
    // There is a conversion from 'symbols to unresolved attributes.
    scala> 'a.attr
    res1: org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute = 'a
    
    // These unresolved attributes can be used to create more complicated expressions.
    scala> 'a === 'b
    res2: org.apache.spark.sql.catalyst.expressions.EqualTo = ('a = 'b)
    
    // SQL verbs can be used to construct logical query plans.
    scala> import org.apache.spark.sql.catalyst.plans.logical._
    scala> import org.apache.spark.sql.catalyst.dsl.plans._
    scala> LocalRelation('key.int, 'value.string).where('key === 1).select('value).analyze
    res3: org.apache.spark.sql.catalyst.plans.logical.LogicalPlan =
    Project [value#3]
     Filter (key#2 = 1)
      LocalRelation [key#2,value#3], []
    Definition Classes
    catalyst
  • package encoders
    Definition Classes
    catalyst
  • package errors

    Functions for attaching and retrieving trees that are associated with errors.

    Functions for attaching and retrieving trees that are associated with errors.

    Definition Classes
    catalyst
  • package expressions

    A set of classes that can be used to represent trees of relational expressions.

    A set of classes that can be used to represent trees of relational expressions. A key goal of the expression library is to hide the details of naming and scoping from developers who want to manipulate trees of relational operators. As such, the library defines a special type of expression, a NamedExpression in addition to the standard collection of expressions.

    Standard Expressions

    A library of standard expressions (e.g., Add, EqualTo), aggregates (e.g., SUM, COUNT), and other computations (e.g. UDFs). Each expression type is capable of determining its output schema as a function of its children's output schema.

    Named Expressions

    Some expression are named and thus can be referenced by later operators in the dataflow graph. The two types of named expressions are AttributeReferences and Aliases. AttributeReferences refer to attributes of the input tuple for a given operator and form the leaves of some expression trees. Aliases assign a name to intermediate computations. For example, in the SQL statement SELECT a+b AS c FROM ..., the expressions a and b would be represented by AttributeReferences and c would be represented by an Alias.

    During analysis, all named expressions are assigned a globally unique expression id, which can be used for equality comparisons. While the original names are kept around for debugging purposes, they should never be used to check if two attributes refer to the same value, as plan transformations can result in the introduction of naming ambiguity. For example, consider a plan that contains subqueries, both of which are reading from the same table. If an optimization removes the subqueries, scoping information would be destroyed, eliminating the ability to reason about which subquery produced a given attribute.

    Evaluation

    The result of expressions can be evaluated using the Expression.apply(Row) method.

    Definition Classes
    catalyst
  • package json
    Definition Classes
    catalyst
  • package optimizer
    Definition Classes
    catalyst
  • package parser
    Definition Classes
    catalyst
  • package planning

    Contains classes for enumerating possible physical plans for a given logical query plan.

    Contains classes for enumerating possible physical plans for a given logical query plan.

    Definition Classes
    catalyst
  • package plans

    A collection of common abstractions for query plans as well as a base logical plan representation.

    A collection of common abstractions for query plans as well as a base logical plan representation.

    Definition Classes
    catalyst
  • package rules

    A framework for applying batches rewrite rules to trees, possibly to fixed point.

    A framework for applying batches rewrite rules to trees, possibly to fixed point.

    Definition Classes
    catalyst
  • package trees

    A library for easily manipulating trees of operators.

    A library for easily manipulating trees of operators. Operators that extend TreeNode are granted the following interface:

    • Scala collection like methods (foreach, map, flatMap, collect, etc)

    - transform - accepts a partial function that is used to generate a new tree. When the partial function can be applied to a given tree segment, that segment is replaced with the result. After attempting to apply the partial function to a given node, the transform function recursively attempts to apply the function to that node's children.

    • debugging support - pretty printing, easy splicing of trees, etc.
    Definition Classes
    catalyst
  • package util
    Definition Classes
    catalyst
  • AliasIdentifier
  • CatalystTypeConverters
  • DefinedByConstructorParams
  • DeserializerBuildHelper
  • FunctionIdentifier
  • IdentifierWithDatabase
  • InternalRow
  • JavaTypeInference
  • QualifiedTableName
  • QueryPlanningTracker
  • ScalaReflection
  • SerializerBuildHelper
  • TableIdentifier
  • WalkedTypePath

abstract class InternalRow extends SpecializedGetters with Serializable

An abstract class for row used internally in Spark SQL, which only contains the columns as internal types.

Linear Supertypes
Serializable, Serializable, SpecializedGetters, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InternalRow
  2. Serializable
  3. Serializable
  4. SpecializedGetters
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InternalRow()

Abstract Value Members

  1. abstract def copy(): InternalRow

    Make a copy of the current InternalRow object.

  2. abstract def get(ordinal: Int, dataType: DataType): AnyRef
    Definition Classes
    SpecializedGetters
  3. abstract def getArray(ordinal: Int): ArrayData
    Definition Classes
    SpecializedGetters
  4. abstract def getBinary(ordinal: Int): Array[Byte]
    Definition Classes
    SpecializedGetters
  5. abstract def getBoolean(ordinal: Int): Boolean
    Definition Classes
    SpecializedGetters
  6. abstract def getByte(ordinal: Int): Byte
    Definition Classes
    SpecializedGetters
  7. abstract def getDecimal(ordinal: Int, precision: Int, scale: Int): Decimal
    Definition Classes
    SpecializedGetters
  8. abstract def getDouble(ordinal: Int): Double
    Definition Classes
    SpecializedGetters
  9. abstract def getFloat(ordinal: Int): Float
    Definition Classes
    SpecializedGetters
  10. abstract def getInt(ordinal: Int): Int
    Definition Classes
    SpecializedGetters
  11. abstract def getInterval(ordinal: Int): CalendarInterval
    Definition Classes
    SpecializedGetters
  12. abstract def getLong(ordinal: Int): Long
    Definition Classes
    SpecializedGetters
  13. abstract def getMap(ordinal: Int): MapData
    Definition Classes
    SpecializedGetters
  14. abstract def getShort(ordinal: Int): Short
    Definition Classes
    SpecializedGetters
  15. abstract def getStruct(ordinal: Int, numFields: Int): InternalRow
    Definition Classes
    SpecializedGetters
  16. abstract def getUTF8String(ordinal: Int): UTF8String
    Definition Classes
    SpecializedGetters
  17. abstract def isNullAt(ordinal: Int): Boolean
    Definition Classes
    SpecializedGetters
  18. abstract def numFields: Int
  19. abstract def setNullAt(i: Int): Unit
  20. abstract def update(i: Int, value: Any): Unit

    Updates the value at column i.

    Updates the value at column i. Note that after updating, the given value will be kept in this row, and the caller side should guarantee that this value won't be changed afterwards.

Concrete 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 anyNull: Boolean

    Returns true if there are any NULL values in this row.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getString(ordinal: Int): String
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def setBoolean(i: Int, value: Boolean): Unit
  18. def setByte(i: Int, value: Byte): Unit
  19. def setDecimal(i: Int, value: Decimal, precision: Int): Unit

    Update the decimal column at i.

    Update the decimal column at i.

    Note: In order to support update decimal with precision > 18 in UnsafeRow, CAN NOT call setNullAt() for decimal column on UnsafeRow, call setDecimal(i, null, precision).

  20. def setDouble(i: Int, value: Double): Unit
  21. def setFloat(i: Int, value: Float): Unit
  22. def setInt(i: Int, value: Int): Unit
  23. def setInterval(i: Int, value: CalendarInterval): Unit
  24. def setLong(i: Int, value: Long): Unit
  25. def setShort(i: Int, value: Short): Unit
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toSeq(schema: StructType): Seq[Any]
  28. def toSeq(fieldTypes: Seq[DataType]): Seq[Any]

    Return a Scala Seq representing the row.

    Return a Scala Seq representing the row. Elements are placed in the same order in the Seq.

  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from SpecializedGetters

Inherited from AnyRef

Inherited from Any

Ungrouped