org.apache.hadoop.hive.ql.optimizer
Class SamplePruner

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.SamplePruner
All Implemented Interfaces:
Transform

public class SamplePruner
extends Object
implements Transform

The transformation step that does sample pruning.


Nested Class Summary
static class SamplePruner.DefaultPPR
          DefaultPPR default processor which does nothing.
static class SamplePruner.FilterPPR
          FilterPPR filter processor.
static class SamplePruner.SamplePrunerCtx
          SamplePrunerCtx.
 
Constructor Summary
SamplePruner()
           
 
Method Summary
static NodeProcessor getDefaultProc()
           
static NodeProcessor getFilterProc()
           
static org.apache.hadoop.fs.Path[] prune(Partition part, FilterDesc.sampleDesc sampleDescr)
          Prunes to get all the files in the partition that satisfy the TABLESAMPLE clause.
 ParseContext transform(ParseContext pctx)
          All transformation steps implement this interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplePruner

public SamplePruner()
Method Detail

transform

public ParseContext transform(ParseContext pctx)
                       throws SemanticException
Description copied from interface: Transform
All transformation steps implement this interface.

Specified by:
transform in interface Transform
Parameters:
pctx - input parse context
Returns:
ParseContext
Throws:
SemanticException

getFilterProc

public static NodeProcessor getFilterProc()

getDefaultProc

public static NodeProcessor getDefaultProc()

prune

public static org.apache.hadoop.fs.Path[] prune(Partition part,
                                                FilterDesc.sampleDesc sampleDescr)
                                         throws SemanticException
Prunes to get all the files in the partition that satisfy the TABLESAMPLE clause.

Parameters:
part - The partition to prune
Returns:
Path[]
Throws:
SemanticException


Copyright © 2011 The Apache Software Foundation