org.apache.hadoop.hive.ql.exec
Class ArchiveUtils.PartSpecInfo

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.ArchiveUtils.PartSpecInfo
Enclosing class:
ArchiveUtils

public static class ArchiveUtils.PartSpecInfo
extends Object

PartSpecInfo keeps fields and values extracted from partial partition info which is prefix of the full info.


Field Summary
 List<org.apache.hadoop.hive.metastore.api.FieldSchema> fields
           
 List<String> values
           
 
Method Summary
static ArchiveUtils.PartSpecInfo create(Table tbl, Map<String,String> partSpec)
          Extract partial prefix specification from table and key-value map
 org.apache.hadoop.fs.Path createPath(Table tbl)
          Creates path where partitions matching prefix should lie in filesystem
 String getName()
          Generates name for prefix partial partition specification.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fields

public List<org.apache.hadoop.hive.metastore.api.FieldSchema> fields

values

public List<String> values
Method Detail

create

public static ArchiveUtils.PartSpecInfo create(Table tbl,
                                               Map<String,String> partSpec)
                                        throws HiveException
Extract partial prefix specification from table and key-value map

Parameters:
tbl - table in which partition is
partSpec - specification of partition
Returns:
extracted specification
Throws:
HiveException

createPath

public org.apache.hadoop.fs.Path createPath(Table tbl)
                                     throws HiveException
Creates path where partitions matching prefix should lie in filesystem

Parameters:
tbl - table in which partition is
Returns:
expected location of partitions matching prefix in filesystem
Throws:
HiveException

getName

public String getName()
               throws HiveException
Generates name for prefix partial partition specification.

Throws:
HiveException


Copyright © 2014 The Apache Software Foundation. All rights reserved.