|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.metadata.Partition
public class Partition
A Hive Table Partition: is a fundamental storage unit within a Table
Constructor Summary | |
---|---|
Partition(Table tbl,
Map<String,String> partSpec,
org.apache.hadoop.fs.Path location)
Create partition object with the given info. |
|
Partition(Table tbl,
Partition tp)
|
Method Summary | |
---|---|
List<String> |
getBucketCols()
|
int |
getBucketCount()
The number of buckets is a property of the partition. |
static int |
getBucketNum(org.apache.hadoop.fs.Path p)
|
org.apache.hadoop.fs.Path |
getBucketPath(int bucketNum)
mapping from bucket number to bucket path |
URI |
getDataLocation()
|
String |
getName()
|
org.apache.hadoop.fs.Path |
getPartitionPath()
|
org.apache.hadoop.fs.Path[] |
getPath()
|
org.apache.hadoop.fs.Path[] |
getPath(Sample s)
|
LinkedHashMap<String,String> |
getSpec()
|
Table |
getTable()
|
Partition |
getTPartition()
|
List<String> |
getValues()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Partition(Table tbl, Partition tp) throws HiveException
HiveException
public Partition(Table tbl, Map<String,String> partSpec, org.apache.hadoop.fs.Path location) throws HiveException
tbl
- Table the partition will be in.partSpec
- Partition specifications.location
- Location of the partition, relative to the table.
HiveException
- Thrown if we could not create the partition.Method Detail |
---|
public Partition getTPartition()
public List<String> getValues()
Partition.getValues()
public String getName()
public Table getTable()
public org.apache.hadoop.fs.Path[] getPath()
public org.apache.hadoop.fs.Path getPartitionPath()
public final URI getDataLocation()
public int getBucketCount()
public List<String> getBucketCols()
public org.apache.hadoop.fs.Path getBucketPath(int bucketNum)
public static int getBucketNum(org.apache.hadoop.fs.Path p)
public org.apache.hadoop.fs.Path[] getPath(Sample s) throws HiveException
HiveException
public LinkedHashMap<String,String> getSpec()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |