public class SplitterPartitioner extends AbstractPartitioner
Partitioner
that locates multiple resources and
associates their file names with execution context keys.
Creates an ExecutionContext
per resource, and labels them as
{partition0, partition1, ..., partitionN}
where 'partition' part
comes from a AbstractPartitioner.getPartitionBaseIdentifier()
.
The grid size information passed to method Partitioner.partition(int)
is ignored.
Constructor and Description |
---|
SplitterPartitioner() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,org.springframework.batch.item.ExecutionContext> |
createPartitions()
Creates the
ExecutionContext s for partitions. |
void |
setInputPatterns(java.util.Set<java.lang.String> inputPatterns)
Sets the input patterns.
|
void |
setInputPatterns(java.lang.String inputPatterns)
Sets the input patterns.
|
void |
setSplitter(Splitter splitter)
Sets the splitter.
|
createExecutionContext, createExecutionContext, getConfiguration, getKeyFileName, getKeySplitLength, getKeySplitLocations, getKeySplitStart, getPartitionBaseIdentifier, partition, setConfiguration, setKeyFileName, setKeySplitLength, setKeySplitLocations, setKeySplitStart, setPartitionBaseIdentifier
protected java.util.Map<java.lang.String,org.springframework.batch.item.ExecutionContext> createPartitions()
AbstractPartitioner
ExecutionContext
s for partitions.createPartitions
in class AbstractPartitioner
ExecutionContext
s for partitionspublic void setInputPatterns(java.lang.String inputPatterns)
inputPatterns
- the new input patternspublic void setInputPatterns(java.util.Set<java.lang.String> inputPatterns)
inputPatterns
- the new input patternspublic void setSplitter(Splitter splitter)
splitter
- the new splitter