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