public abstract class SqlUtils
extends java.lang.Object
Constructor and Description |
---|
SqlUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createExternalReadableTable(LoadConfiguration config,
java.lang.String prefix,
java.util.List<java.lang.String> overrideLocations) |
static java.lang.String |
createLocationString(java.lang.String[] strings)
Converts string array to greenplum friendly string.
|
static java.lang.String |
dropExternalReadableTable(LoadConfiguration config,
java.lang.String prefix) |
static java.lang.String |
load(LoadConfiguration config,
java.lang.String prefix)
Builds sql clause to load data into a database.
|
public static java.lang.String createExternalReadableTable(LoadConfiguration config, java.lang.String prefix, java.util.List<java.lang.String> overrideLocations)
public static java.lang.String dropExternalReadableTable(LoadConfiguration config, java.lang.String prefix)
config
- the load configurationprefix
- the prefixpublic static java.lang.String load(LoadConfiguration config, java.lang.String prefix)
config
- Load configuration.prefix
- Prefix for temporary resources.public static java.lang.String createLocationString(java.lang.String[] strings)
strings
- String array to explode