public class OozieSchema extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OozieSchema.OozieColumn |
static class |
OozieSchema.OozieIndex |
static class |
OozieSchema.OozieTable |
| Modifier and Type | Field and Description |
|---|---|
static Map<Schema.Table,List<Schema.Column>> |
TABLE_COLUMNS |
| Constructor and Description |
|---|
OozieSchema() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateCreateTableScript(Schema.Table table,
Schema.DBType dbType)
Generates the create table SQL Statement
|
static String |
generateInsertVersionScript(String dbName)
Generates the Insert statement to insert the OOZIE_VERSION to table
|
static String |
getOozieVersion()
Gets the Oozie Schema Version
|
static String |
getValidationQuery(String dbName)
Gets the query that will be used to validate the connection
|
static void |
setOozieDbName(String dbName) |
public static final Map<Schema.Table,List<Schema.Column>> TABLE_COLUMNS
public OozieSchema()
public static void setOozieDbName(String dbName)
public static String generateCreateTableScript(Schema.Table table, Schema.DBType dbType)
table - dbType - public static String getValidationQuery(String dbName)
dbName - public static String generateInsertVersionScript(String dbName)
dbName - public static String getOozieVersion()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.