|
||||||||||
| 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.
| Field Summary | |
|---|---|
static String |
CLASS_NAME
|
static org.apache.commons.logging.Log |
LOG
|
| 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(TableScanOperator ts,
ParseContext parseCtx,
String alias)
Get the partition list for the TS operator that satisfies the partition pruner condition. |
static boolean |
prunePartitionNames(List<String> columnNames,
ExprNodeGenericFuncDesc prunerExpr,
String defaultPartitionName,
List<String> partNames)
Prunes partition names to see if they match the prune expression. |
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 |
| Field Detail |
|---|
public static final String CLASS_NAME
public static final org.apache.commons.logging.Log LOG
| 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(TableScanOperator ts,
ParseContext parseCtx,
String alias)
throws HiveException
HiveException
public static boolean prunePartitionNames(List<String> columnNames,
ExprNodeGenericFuncDesc prunerExpr,
String defaultPartitionName,
List<String> partNames)
throws HiveException,
MetaException
columnNames - name of partition columnsprunerExpr - The expression to match.defaultPartitionName - name of default partitionpartNames - Partition names to filter. The list is modified in place.
HiveException
MetaExceptionpublic static boolean hasColumnExpr(ExprNodeDesc desc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||