org.apache.hadoop.hive.ql.optimizer
Class SamplePruner
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamplePruner
public SamplePruner()
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 © 2009 The Apache Software Foundation