public class JdbcHdfsJob extends AbstractModuleFixture<JdbcHdfsJob>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_COLUMNS |
static java.lang.String |
DEFAULT_DIRECTORY |
static java.lang.String |
DEFAULT_FILE_NAME |
static java.lang.String |
DEFAULT_SQL |
static java.lang.String |
DEFAULT_TABLE |
label
Constructor and Description |
---|
JdbcHdfsJob(java.lang.String dir,
java.lang.String fileName,
java.lang.String sql,
java.lang.String columns,
java.lang.String table)
Construct a new jdbchdfs fixture using the provided dir, file and sql.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toDSL()
Renders the default DSL for this fixture.
|
static JdbcHdfsJob |
withDefaults()
Creates an instance of the JdbcHdfsJob fixture using defaults.
|
label, toString
public static final java.lang.String DEFAULT_DIRECTORY
public static final java.lang.String DEFAULT_FILE_NAME
public static final java.lang.String DEFAULT_SQL
public static final java.lang.String DEFAULT_COLUMNS
public static final java.lang.String DEFAULT_TABLE
public JdbcHdfsJob(java.lang.String dir, java.lang.String fileName, java.lang.String sql, java.lang.String columns, java.lang.String table)
dir
- the directory where the result file will be writtenfileName
- The name of the file to be written.sql
- The sql statement that will extract the data from the databasepublic static JdbcHdfsJob withDefaults()
public java.lang.String toDSL()
toDSL
in class AbstractModuleFixture<JdbcHdfsJob>