public final class PartitionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addTablePartsOutputs(Hive db,
Set<WriteEntity> outputs,
Table table,
List<Map<String,String>> partitionSpecs,
boolean allowMany,
WriteEntity.WriteType writeType)
Add the table partitions to be modified in the output, so that it is available for the pre-execution hook.
|
static Partition |
getPartition(Hive db,
Table table,
Map<String,String> partitionSpec,
boolean throwException) |
static List<Partition> |
getPartitions(Hive db,
Table table,
Map<String,String> partitionSpec,
boolean throwException) |
static ExprNodeGenericFuncDesc |
makeBinaryPredicate(String fn,
ExprNodeDesc left,
ExprNodeDesc right) |
static ExprNodeGenericFuncDesc |
makeUnaryPredicate(String fn,
ExprNodeDesc arg) |
static void |
validatePartitions(HiveConf conf,
Map<String,String> partitionSpec)
Certain partition values are are used by hive.
|
public static void validatePartitions(HiveConf conf, Map<String,String> partitionSpec) throws SemanticException
SemanticExceptionpublic static ExprNodeGenericFuncDesc makeBinaryPredicate(String fn, ExprNodeDesc left, ExprNodeDesc right) throws SemanticException
SemanticExceptionpublic static ExprNodeGenericFuncDesc makeUnaryPredicate(String fn, ExprNodeDesc arg) throws SemanticException
SemanticExceptionpublic static Partition getPartition(Hive db, Table table, Map<String,String> partitionSpec, boolean throwException) throws SemanticException
SemanticExceptionpublic static List<Partition> getPartitions(Hive db, Table table, Map<String,String> partitionSpec, boolean throwException) throws SemanticException
SemanticExceptionpublic static void addTablePartsOutputs(Hive db, Set<WriteEntity> outputs, Table table, List<Map<String,String>> partitionSpecs, boolean allowMany, WriteEntity.WriteType writeType) throws SemanticException
SemanticExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.