org.apache.hadoop.hive.ql.optimizer
Class ColumnPrunerProcFactory.ColumnPrunerPTFProc

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.ColumnPrunerProcFactory.ColumnPrunerPTFProc
All Implemented Interfaces:
NodeProcessor
Enclosing class:
ColumnPrunerProcFactory

public static class ColumnPrunerProcFactory.ColumnPrunerPTFProc
extends Object
implements NodeProcessor

- Pruning can only be done for Windowing. PTFs are black boxes, we assume all columns are needed. - add column names referenced in WindowFn args and in WindowFn expressions to the pruned list of the child Select Op. - finally we set the prunedColList on the ColumnPrunerContx; and update the RR & signature on the PTFOp.


Constructor Summary
ColumnPrunerProcFactory.ColumnPrunerPTFProc()
           
 
Method Summary
 Object process(Node nd, Stack<Node> stack, NodeProcessorCtx ctx, Object... nodeOutputs)
          Generic process for all ops that don't have specific implementations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnPrunerProcFactory.ColumnPrunerPTFProc

public ColumnPrunerProcFactory.ColumnPrunerPTFProc()
Method Detail

process

public Object process(Node nd,
                      Stack<Node> stack,
                      NodeProcessorCtx ctx,
                      Object... nodeOutputs)
               throws SemanticException
Description copied from interface: NodeProcessor
Generic process for all ops that don't have specific implementations.

Specified by:
process in interface NodeProcessor
Parameters:
nd - operator to process
ctx - operator processor context
nodeOutputs - A variable argument list of outputs from other nodes in the walk
Returns:
Object to be returned by the process call
Throws:
SemanticException


Copyright © 2014 The Apache Software Foundation. All rights reserved.