public class MetaStoreSchemaInfo
extends java.lang.Object
| Constructor and Description |
|---|
MetaStoreSchemaInfo(java.lang.String hiveHome,
HiveConf hiveConf,
java.lang.String dbType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateInitFileName(java.lang.String toVersion)
Get the name of the script to initialize the schema for given version
|
static java.lang.String |
getHiveSchemaVersion() |
java.lang.String |
getMetaStoreScriptDir()
Find the directory of metastore scripts
|
java.util.List<java.lang.String> |
getUpgradeScripts(java.lang.String fromVersion)
Get the list of sql scripts required to upgrade from the give version to current
|
public MetaStoreSchemaInfo(java.lang.String hiveHome,
HiveConf hiveConf,
java.lang.String dbType)
throws HiveMetaException
HiveMetaExceptionpublic java.util.List<java.lang.String> getUpgradeScripts(java.lang.String fromVersion)
throws HiveMetaException
fromVersion - HiveMetaExceptionpublic java.lang.String generateInitFileName(java.lang.String toVersion)
throws HiveMetaException
toVersion - Target version. If it's null, then the current server version is usedHiveMetaExceptionpublic java.lang.String getMetaStoreScriptDir()
public static java.lang.String getHiveSchemaVersion()
Copyright © 2012 The Apache Software Foundation