org.apache.hadoop.hive.ql.metadata
Class DummyPartition

java.lang.Object
  extended by org.apache.hadoop.hive.ql.metadata.Partition
      extended by 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

Constructor Summary
DummyPartition()
           
DummyPartition(Table tbl, String name)
           
DummyPartition(Table tbl, String name, Map<String,String> partSpec)
           
 
Method Summary
 String getCompleteName()
           
 String getName()
           
 LinkedHashMap<String,String> getSpec()
           
 List<String> getValues()
           
 void setName(String name)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.metadata.Partition
canDrop, canWrite, cloneSd, createMetaPartitionObject, getBucketCols, getBucketCount, getBucketPath, getCols, getDataLocation, getDeserializer, getInputFormatClass, getLastAccessTime, getLocation, getMetadataFromPartitionSchema, getOutputFormatClass, getParameters, getPath, getPath, getProtectMode, getSchema, getSchemaFromTableSchema, getSkewedColNames, getSkewedColValueLocationMaps, getSkewedColValues, getSortColNames, getSortCols, getSortedPaths, getTable, getTPartition, isOffline, isStoredAsSubDirectories, setBucketCount, setInputFormatClass, setLastAccessTime, setLocation, setOutputFormatClass, setProtectMode, setSkewedValueLocationMap, setTable, setTPartition, setValues, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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 © 2014 The Apache Software Foundation. All rights reserved.