public class EximUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EximUtil.ReadMetaData
Utility class to help return complex value from readMetaData function
|
| Modifier and Type | Field and Description |
|---|---|
static String |
METADATA_FORMAT_FORWARD_COMPATIBLE_VERSION |
static String |
METADATA_FORMAT_VERSION |
| Modifier and Type | Method and Description |
|---|---|
static void |
createExportDump(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataPath,
Table tableHandle,
Iterable<Partition> partitions,
ReplicationSpec replicationSpec) |
static void |
doCheckCompatibility(String currVersion,
String version,
String fcVersion) |
static Map<String,String> |
makePartSpec(List<FieldSchema> partCols,
List<String> partVals)
Return the partition specification from the specified keys and values
|
static EximUtil.ReadMetaData |
readMetaData(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataPath) |
static String |
relativeToAbsolutePath(HiveConf conf,
String location) |
static boolean |
schemaCompare(List<FieldSchema> newSchema,
List<FieldSchema> oldSchema)
Compares the schemas - names, types and order, but ignoring comments
|
public static final String METADATA_FORMAT_VERSION
public static final String METADATA_FORMAT_FORWARD_COMPATIBLE_VERSION
public static String relativeToAbsolutePath(HiveConf conf, String location) throws SemanticException
SemanticExceptionpublic static void createExportDump(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataPath,
Table tableHandle,
Iterable<Partition> partitions,
ReplicationSpec replicationSpec)
throws SemanticException,
IOException
SemanticExceptionIOExceptionpublic static EximUtil.ReadMetaData readMetaData(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path metadataPath) throws IOException, SemanticException
IOExceptionSemanticExceptionpublic static void doCheckCompatibility(String currVersion, String version, String fcVersion) throws SemanticException
SemanticExceptionpublic static Map<String,String> makePartSpec(List<FieldSchema> partCols, List<String> partVals)
partCols - the names of the partition keyspartVals - the values of the partition keyspublic static boolean schemaCompare(List<FieldSchema> newSchema, List<FieldSchema> oldSchema)
newSchema - the new schemaoldSchema - the old schemaCopyright © 2017 The Apache Software Foundation. All rights reserved.