|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.ArchiveUtils
public final class ArchiveUtils
ArchiveUtils.
Nested Class Summary | |
---|---|
static class |
ArchiveUtils.HarPathHelper
HarPathHelper helps to create har:/ URIs for locations inside of archive. |
static class |
ArchiveUtils.PartSpecInfo
PartSpecInfo keeps fields and values extracted from partial partition info which is prefix of the full info. |
Field Summary | |
---|---|
static String |
ARCHIVING_LEVEL
|
Constructor Summary | |
---|---|
ArchiveUtils()
|
Method Summary | |
---|---|
static String |
addSlash(String s)
|
static URI |
addSlash(URI u)
Makes sure, that URI points to directory by adding slash to it. |
static String |
conflictingArchiveNameOrNull(Hive db,
Table tbl,
LinkedHashMap<String,String> partSpec)
Determines if one can insert into partition(s), or there's a conflict with archive. |
static int |
getArchivingLevel(Partition p)
Returns archiving level, which is how many fields were set in partial specification ARCHIVE was run for |
static String |
getPartialName(Partition p,
int level)
Get a prefix of the given parition's string representation. |
static boolean |
isArchived(Partition p)
Determines whether a partition has been archived |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String ARCHIVING_LEVEL
Constructor Detail |
---|
public ArchiveUtils()
Method Detail |
---|
public static String addSlash(String s)
public static URI addSlash(URI u) throws HiveException
HiveException
public static boolean isArchived(Partition p)
p
-
public static int getArchivingLevel(Partition p) throws HiveException
HiveException
public static String getPartialName(Partition p, int level) throws HiveException
p
- partition objectlevel
- level for prefix depth
HiveException
public static String conflictingArchiveNameOrNull(Hive db, Table tbl, LinkedHashMap<String,String> partSpec) throws HiveException
db
- - Hive objecttbl
- - table where partition ispartSpec
- - partition specification with possible nulls in case of
dynamic partiton inserts
HiveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |