|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.optimizer.ppr.PartitionPruner
public class PartitionPruner
The transformation step that does partition pruning.
| Constructor Summary | |
|---|---|
PartitionPruner()
|
|
| Method Summary | |
|---|---|
static boolean |
hasColumnExpr(ExprNodeDesc desc)
Whether the expression contains a column node or not. |
static boolean |
onlyContainsPartnCols(Table tab,
ExprNodeDesc expr)
Find out whether the condition only contains partitioned columns. |
static PrunedPartitionList |
prune(Table tab,
ExprNodeDesc prunerExpr,
HiveConf conf,
String alias,
Map<String,PrunedPartitionList> prunedPartitionsMap)
Get the partition list for the table that satisfies the partition pruner condition. |
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 |
|---|
public PartitionPruner()
| Method Detail |
|---|
public ParseContext transform(ParseContext pctx)
throws SemanticException
Transform
transform in interface Transformpctx - input parse context
SemanticException
public static boolean onlyContainsPartnCols(Table tab,
ExprNodeDesc expr)
tab - the table objectexpr - the pruner expression for the table
public static PrunedPartitionList prune(Table tab,
ExprNodeDesc prunerExpr,
HiveConf conf,
String alias,
Map<String,PrunedPartitionList> prunedPartitionsMap)
throws HiveException
tab - the table object for the aliasprunerExpr - the pruner expression for the aliasconf - for checking whether "strict" mode is on.alias - for generating error message only.
HiveExceptionpublic static boolean hasColumnExpr(ExprNodeDesc desc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||