shark.execution

ReduceSinkOperator

class ReduceSinkOperator extends UnaryOperator[ReduceSinkDesc]

Converts a collection of rows into key, value pairs. This is the upstream operator for joins and groupbys.

Linear Supertypes
UnaryOperator[ReduceSinkDesc], Operator[ReduceSinkDesc], Serializable, Serializable, LogHelper, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReduceSinkOperator
  2. UnaryOperator
  3. Operator
  4. Serializable
  5. Serializable
  6. LogHelper
  7. Logging
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReduceSinkOperator()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addChild(child: Operator[_ <: HiveDesc]): Unit

    Definition Classes
    Operator
  7. def addParent(parent: Operator[_ <: HiveDesc]): Unit

    Definition Classes
    Operator
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def childOperators: ArrayBuffer[Operator[_ <: HiveDesc]]

    Definition Classes
    Operator
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. var conf: ReduceSinkDesc

  12. def desc: ReduceSinkDesc

    Definition Classes
    Operator
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def errStream(): PrintStream

    Definition Classes
    LogHelper
  16. def execute(): RDD[_]

    Execute the operator.

    Execute the operator. This should recursively execute parent operators.

    Definition Classes
    UnaryOperatorOperator
  17. def executeParents(): Seq[(Int, RDD[_])]

    Attributes
    protected
    Definition Classes
    Operator
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def getConf(): ReduceSinkDesc

  21. def getKeyValueTableDescs(): (TableDesc, TableDesc)

  22. def getTag(): Int

    Return the join tag.

    Return the join tag. This is usually just 0. ReduceSink might set it to something else.

    Definition Classes
    ReduceSinkOperatorOperator
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. def hconf: HiveConf

    Definition Classes
    Operator
  25. def initEvaluators(evals: Array[ExprNodeEvaluator], start: Int, length: Int, rowInspector: ObjectInspector): Array[ObjectInspector]

    Initialize an array of ExprNodeEvaluator from start, for specified length and return the result ObjectInspectors.

    Initialize an array of ExprNodeEvaluator from start, for specified length and return the result ObjectInspectors.

    Attributes
    protected
    Definition Classes
    Operator
  26. def initEvaluators(evals: Array[ExprNodeEvaluator], rowInspector: ObjectInspector): Array[ObjectInspector]

    Initialize an array of ExprNodeEvaluator and return the result ObjectInspectors.

    Initialize an array of ExprNodeEvaluator and return the result ObjectInspectors.

    Attributes
    protected
    Definition Classes
    Operator
  27. def initEvaluatorsAndReturnStruct(evals: Array[ExprNodeEvaluator], outputColName: List[String], rowInspector: ObjectInspector): StructObjectInspector

    Initialize an array of ExprNodeEvaluator and put the return values into a StructObjectInspector with integer field names.

    Initialize an array of ExprNodeEvaluator and put the return values into a StructObjectInspector with integer field names.

    Attributes
    protected
    Definition Classes
    Operator
  28. def initEvaluatorsAndReturnStruct(evals: Array[ExprNodeEvaluator], fieldObjectInspectors: Array[ObjectInspector], distinctColIndices: List[List[Integer]], outputColNames: List[String], length: Int, rowInspector: ObjectInspector): StructObjectInspector

    Copy from the org.

    Copy from the org.apache.hadoop.hive.ql.exec.ReduceSinkOperator Initializes array of ExprNodeEvaluator. Adds Union field for distinct column indices for group by. Puts the return values into a StructObjectInspector with output column names.

    If distinctColIndices is empty, the object inspector is same as Operator#initEvaluatorsAndReturnStruct(ExprNodeEvaluator[], List, ObjectInspector)

    Attributes
    protected
    Definition Classes
    Operator
  29. def initEvaluatorsAndReturnStruct(evals: Array[ExprNodeEvaluator], distinctColIndices: List[List[Integer]], outputColNames: List[String], length: Int, rowInspector: ObjectInspector): StructObjectInspector

    Copy from the org.

    Copy from the org.apache.hadoop.hive.ql.exec.ReduceSinkOperator Initializes array of ExprNodeEvaluator. Adds Union field for distinct column indices for group by. Puts the return values into a StructObjectInspector with output column names.

    If distinctColIndices is empty, the object inspector is same as Operator#initEvaluatorsAndReturnStruct(ExprNodeEvaluator[], List, ObjectInspector)

    Attributes
    protected
    Definition Classes
    Operator
  30. def initializeMasterOnAll(): Unit

    Recursively calls initializeOnMaster() for the entire query plan.

    Recursively calls initializeOnMaster() for the entire query plan. Parent operators are called before children.

    Definition Classes
    Operator
  31. def initializeOnMaster(): Unit

    Initialize the operator on master node.

    Initialize the operator on master node. This can have dependency on other nodes. When an operator's initializeOnMaster() is invoked, all its parents' initializeOnMaster() have been invoked.

    Definition Classes
    ReduceSinkOperatorOperator
  32. def initializeOnSlave(): Unit

    Initialize the operator on slave nodes.

    Initialize the operator on slave nodes. This method should have no dependency on parents or children. Everything that is not used in this method should be marked @transient.

    Definition Classes
    ReduceSinkOperatorOperator
  33. def inputObjectInspectors(): Seq[ObjectInspector]

    Attributes
    protected
    Definition Classes
    Operator
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  36. var keyEval: Array[ExprNodeEvaluator]

  37. var keyFieldObjInspectors: Array[ObjectInspector]

  38. var keyObjInspector: ObjectInspector

  39. var keySer: SerDe

  40. def log: Logger

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

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

    Attributes
    protected
    Definition Classes
    Logging
  43. def logError(msg: String, exception: Throwable): Unit

    Definition Classes
    LogHelper
  44. def logError(msg: String, detail: String): Unit

    Definition Classes
    LogHelper
  45. def logError(msg: ⇒ String): Unit

    Definition Classes
    LogHelper → Logging
  46. def logError(msg: ⇒ String, throwable: Throwable): Unit

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  53. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  54. final def notify(): Unit

    Definition Classes
    AnyRef
  55. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  56. def objectInspector: ObjectInspector

    Definition Classes
    UnaryOperator
  57. var objectInspectors: Seq[ObjectInspector]

    Definition Classes
    Operator
  58. def outStream(): PrintStream

    Definition Classes
    LogHelper
  59. def outputObjectInspector(): StandardStructObjectInspector

    Definition Classes
    ReduceSinkOperatorOperator
  60. def parentOperator: Operator[HiveDesc]

    Definition Classes
    UnaryOperator
  61. def parentOperators: ArrayBuffer[Operator[_ <: HiveDesc]]

    Definition Classes
    Operator
  62. def parentOperatorsAsJavaList: List[Operator[_ <: HiveDesc]]

    Return the parent operators as a Java List.

    Return the parent operators as a Java List. This is for interoperability with Java. We use this in explain's Java code.

    Definition Classes
    Operator
  63. var partitionEval: Array[ExprNodeEvaluator]

  64. var partitionObjInspectors: Array[ObjectInspector]

  65. def postprocessRdd(rdd: RDD[_]): RDD[_]

    Called on master.

    Called on master.

    Definition Classes
    UnaryOperator
  66. def preprocessRdd(rdd: RDD[_]): RDD[_]

    Called on master.

    Called on master.

    Definition Classes
    UnaryOperator
  67. def processPartition(split: Int, iter: Iterator[_]): Iterator[(ReduceKeyMapSide, BytesWritable)]

    Process a partition.

    Process a partition. Called on slaves.

    Definition Classes
    ReduceSinkOperatorUnaryOperatorOperator
  68. def processPartitionDistinct(iter: Iterator[_]): Iterator[(ReduceKeyMapSide, BytesWritable)]

    Process a partition when there is distinct key aggregations.

    Process a partition when there is distinct key aggregations. One row per distinct column is emitted here.

  69. def processPartitionNoDistinct(iter: Iterator[_]): Iterator[(ReduceKeyMapSide, BytesWritable)]

    Process a partition when there is NO distinct key aggregations.

  70. def returnTerminalOperators(): Seq[Operator[_ <: HiveDesc]]

    Definition Classes
    Operator
  71. def returnTopOperators(): Seq[Operator[_]]

    Definition Classes
    Operator
  72. def setConf(arg0: ReduceSinkDesc): Unit

  73. def setDesc[B >: ReduceSinkDesc](d: B): Unit

    Definition Classes
    Operator
  74. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  75. def toString(): String

    Definition Classes
    AnyRef → Any
  76. var valFieldObjInspectors: Array[ObjectInspector]

  77. var valObjInspector: ObjectInspector

  78. var valueEval: Array[ExprNodeEvaluator]

  79. var valueSer: SerDe

  80. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from UnaryOperator[ReduceSinkDesc]

Inherited from Operator[ReduceSinkDesc]

Inherited from Serializable

Inherited from Serializable

Inherited from LogHelper

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped