public class EximUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
METADATA_FORMAT_FORWARD_COMPATIBLE_VERSION |
static java.lang.String |
METADATA_FORMAT_VERSION |
| Modifier and Type | Method and Description |
|---|---|
static void |
createExportDump(FileSystem fs,
Path metadataPath,
Table tableHandle,
java.util.List<Partition> partitions) |
static void |
doCheckCompatibility(java.lang.String currVersion,
java.lang.String version,
java.lang.String fcVersion) |
static java.util.Map<java.lang.String,java.lang.String> |
makePartSpec(java.util.List<FieldSchema> partCols,
java.util.List<java.lang.String> partVals)
Return the partition specification from the specified keys and values
|
static java.util.Map.Entry<Table,java.util.List<Partition>> |
readMetaData(FileSystem fs,
Path metadataPath) |
static java.lang.String |
relativeToAbsolutePath(HiveConf conf,
java.lang.String location) |
static boolean |
schemaCompare(java.util.List<FieldSchema> newSchema,
java.util.List<FieldSchema> oldSchema)
Compares the schemas - names, types and order, but ignoring comments
|
public static final java.lang.String METADATA_FORMAT_VERSION
public static final java.lang.String METADATA_FORMAT_FORWARD_COMPATIBLE_VERSION
public static java.lang.String relativeToAbsolutePath(HiveConf conf, java.lang.String location) throws SemanticException
SemanticExceptionpublic static void createExportDump(FileSystem fs,
Path metadataPath,
Table tableHandle,
java.util.List<Partition> partitions)
throws SemanticException,
java.io.IOException
SemanticExceptionjava.io.IOExceptionpublic static java.util.Map.Entry<Table,java.util.List<Partition>> readMetaData(FileSystem fs, Path metadataPath) throws java.io.IOException, SemanticException
java.io.IOExceptionSemanticExceptionpublic static void doCheckCompatibility(java.lang.String currVersion,
java.lang.String version,
java.lang.String fcVersion)
throws SemanticException
SemanticExceptionpublic static java.util.Map<java.lang.String,java.lang.String> makePartSpec(java.util.List<FieldSchema> partCols, java.util.List<java.lang.String> partVals)
partCols - the names of the partition keyspartVals - the values of the partition keyspublic static boolean schemaCompare(java.util.List<FieldSchema> newSchema, java.util.List<FieldSchema> oldSchema)
newSchema - the new schemaoldSchema - the old schemaCopyright © 2012 The Apache Software Foundation