public class IncrementalColumnRangePartitioner extends Object implements org.springframework.batch.core.partition.support.Partitioner, org.springframework.batch.core.StepExecutionListener, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
BATCH_INCREMENTAL_MAX_ID |
| Constructor and Description |
|---|
IncrementalColumnRangePartitioner() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
Map<String,org.springframework.batch.item.ExecutionContext> |
partition(int gridSize)
Partition a database table assuming that the data in the column specified
are uniformly distributed.
|
void |
setCheckColumn(String checkColumn)
The name of the check column to be used by the task.
|
void |
setColumn(String column)
The name of the column to partition.
|
void |
setDataSource(DataSource dataSource)
The data source for connecting to the database.
|
void |
setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
The job explorer to be used by the task.
|
void |
setOverrideValue(Long overrideValue)
The override value to be used by the task.
|
void |
setPartitions(int partitions)
The number of partitions to create.
|
void |
setTable(String table)
The name of the SQL table the data are in.
|
public static final String BATCH_INCREMENTAL_MAX_ID
public void setDataSource(DataSource dataSource)
dataSource - a DataSourcepublic void setTable(String table)
table - the name of the tablepublic void setColumn(String column)
column - the column name.public void setPartitions(int partitions)
partitions - the number of partitions.public void setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
jobExplorer - the job explorer to use.public void setCheckColumn(String checkColumn)
checkColumn - the check column namepublic void setOverrideValue(Long overrideValue)
overrideValue - the override value.public Map<String,org.springframework.batch.item.ExecutionContext> partition(int gridSize)
minValue and maxValue specifying the range of
values to consider in each partition.partition in interface org.springframework.batch.core.partition.support.PartitionerPartitioner.partition(int)public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerpublic org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep in interface org.springframework.batch.core.StepExecutionListenerCopyright © 2016 Pivotal Software, Inc.. All rights reserved.