org.apache.hadoop.hive.ql.metadata
Class DummyPartition
java.lang.Object
org.apache.hadoop.hive.ql.metadata.Partition
org.apache.hadoop.hive.ql.metadata.DummyPartition
- All Implemented Interfaces:
- Serializable
public class DummyPartition
- extends Partition
A Hive Table Partition: is a fundamental storage unit within a Table. Currently, Hive does not support
hierarchical partitions - For eg: if partition ds=1, hr=1 exists, there is no way to access ds=1
Hierarchical partitions are needed in some cases, for eg. locking. For now, create a dummy partition to
satisfy this
- See Also:
- Serialized Form
Methods inherited from class org.apache.hadoop.hive.ql.metadata.Partition |
canDrop, canWrite, getBucketCols, getBucketCount, getBucketPath, getCols, getDataLocation, getDeserializer, getDeserializer, getInputFormatClass, getLastAccessTime, getLocation, getOutputFormatClass, getParameters, getPartitionPath, getPath, getPath, getProtectMode, getSchema, getSchemaFromTableSchema, getSkewedColNames, getSkewedColValueLocationMaps, getSkewedColValues, getSortColNames, getSortCols, getTable, getTPartition, isOffline, setInputFormatClass, setLastAccessTime, setLocation, setOutputFormatClass, setProtectMode, setSkewedValueLocationMap, setTable, setTPartition, setValues, toString |
DummyPartition
public DummyPartition()
DummyPartition
public DummyPartition(Table tbl,
String name)
throws HiveException
- Throws:
HiveException
DummyPartition
public DummyPartition(Table tbl,
String name,
Map<String,String> partSpec)
throws HiveException
- Throws:
HiveException
getName
public String getName()
- Overrides:
getName
in class Partition
setName
public void setName(String name)
getCompleteName
public String getCompleteName()
- Overrides:
getCompleteName
in class Partition
- Returns:
- include the db name
getSpec
public LinkedHashMap<String,String> getSpec()
- Overrides:
getSpec
in class Partition
getValues
public List<String> getValues()
- Overrides:
getValues
in class Partition
- Returns:
- The values of the partition
- See Also:
Partition.getValues()
Copyright © 2013 The Apache Software Foundation