org.apache.hadoop.hive.ql.plan
Class PartitionSpec
java.lang.Object
org.apache.hadoop.hive.ql.plan.PartitionSpec
public class PartitionSpec
- extends Object
PartitionSpec
PartitionSpec
public PartitionSpec()
addPredicate
public void addPredicate(String key,
String operator,
String value)
- Parameters:
key
- partition key name for one partition key compare in the specoperator
- the operator that is used for the comparisonvalue
- 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