org.apache.hadoop.hive.ql.plan
Class PartitionSpec

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.PartitionSpec

public class PartitionSpec
extends Object

PartitionSpec


Constructor Summary
PartitionSpec()
           
 
Method Summary
 void addPredicate(String key, String operator, String value)
           
 boolean existsKey(String key)
           
 Map<String,String> getPartSpecWithoutOperator()
           
 boolean isNonEqualityOperator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartitionSpec

public PartitionSpec()
Method Detail

addPredicate

public void addPredicate(String key,
                         String operator,
                         String value)
Parameters:
key - partition key name for one partition key compare in the spec
operator - the operator that is used for the comparison
value - the value to be compared against

existsKey

public boolean existsKey(String key)
Parameters:
key - partition key to look for in the partition spec
Returns:
true if key exists in the partition spec, false otherwise

toString

public String toString()
Overrides:
toString in class Object

getPartSpecWithoutOperator

public Map<String,String> getPartSpecWithoutOperator()

isNonEqualityOperator

public boolean isNonEqualityOperator()


Copyright © 2013 The Apache Software Foundation