public class PartitionedJdbcHdfsJob extends AbstractModuleFixture<PartitionedJdbcHdfsJob>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_COLUMN_NAMES |
static java.lang.String |
DEFAULT_PARTITION_COLUMN |
static int |
DEFAULT_PARTITIONS |
static java.lang.String |
DEFAULT_TABLE |
label
Constructor and Description |
---|
PartitionedJdbcHdfsJob(java.lang.String dir,
java.lang.String fileName,
java.lang.String tableName,
java.lang.String columns,
java.lang.String partitionColumn,
int partitions)
Construct a new jdbchdfs partitioned fixture using the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toDSL()
Renders the default DSL for this fixture.
|
static PartitionedJdbcHdfsJob |
withDefaults()
Creates an instance of the JdbcHdfsJob fixture using defaults.
|
label, toString
public static final java.lang.String DEFAULT_TABLE
public static final java.lang.String DEFAULT_COLUMN_NAMES
public static final java.lang.String DEFAULT_PARTITION_COLUMN
public static final int DEFAULT_PARTITIONS
public PartitionedJdbcHdfsJob(java.lang.String dir, java.lang.String fileName, java.lang.String tableName, java.lang.String columns, java.lang.String partitionColumn, int partitions)
dir
- the directory where the result file will be writtenfileName
- The name of the file to be written.tableName
- The tableName name to select fromcolumns
- The column names to selectpartitionColumn
- The column used for partitioningpartitions
- The number of partitionspublic static PartitionedJdbcHdfsJob withDefaults()
public java.lang.String toDSL()
toDSL
in class AbstractModuleFixture<PartitionedJdbcHdfsJob>