org.apache.hadoop.hive.ql.optimizer.ppr
Class PartitionExpressionForMetastore

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.ppr.PartitionExpressionForMetastore
All Implemented Interfaces:
PartitionExpressionProxy

public class PartitionExpressionForMetastore
extends Object
implements PartitionExpressionProxy

The basic implementation of PartitionExpressionProxy that uses ql package classes.


Constructor Summary
PartitionExpressionForMetastore()
           
 
Method Summary
 String convertExprToFilter(byte[] exprBytes)
           
 boolean filterPartitionsByExpr(List<String> columnNames, byte[] exprBytes, String defaultPartitionName, List<String> partitionNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionExpressionForMetastore

public PartitionExpressionForMetastore()
Method Detail

convertExprToFilter

public String convertExprToFilter(byte[] exprBytes)
                           throws MetaException
Specified by:
convertExprToFilter in interface PartitionExpressionProxy
Throws:
MetaException

filterPartitionsByExpr

public boolean filterPartitionsByExpr(List<String> columnNames,
                                      byte[] exprBytes,
                                      String defaultPartitionName,
                                      List<String> partitionNames)
                               throws MetaException
Specified by:
filterPartitionsByExpr in interface PartitionExpressionProxy
Throws:
MetaException


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