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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionExpressionForMetastore

public PartitionExpressionForMetastore()
Method Detail

convertExprToFilter

public String convertExprToFilter(byte[] exprBytes)
                           throws org.apache.hadoop.hive.metastore.api.MetaException
Specified by:
convertExprToFilter in interface PartitionExpressionProxy
Throws:
org.apache.hadoop.hive.metastore.api.MetaException

filterPartitionsByExpr

public boolean filterPartitionsByExpr(List<String> columnNames,
                                      byte[] exprBytes,
                                      String defaultPartitionName,
                                      List<String> partitionNames)
                               throws org.apache.hadoop.hive.metastore.api.MetaException
Specified by:
filterPartitionsByExpr in interface PartitionExpressionProxy
Throws:
org.apache.hadoop.hive.metastore.api.MetaException


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