use of org.springframework.batch.item.ExecutionContext in project pinpoint by naver.
the class DefaultDivider method divide.
@Override
public Map<String, ExecutionContext> divide(String partitionNamePrefix, String batchName) {
Map<String, ExecutionContext> mapContext = new HashMap<>();
ExecutionContext emptyExecutionContext = new ExecutionContext();
mapContext.put(partitionNamePrefix + 1, emptyExecutionContext);
return mapContext;
}
use of org.springframework.batch.item.ExecutionContext in project jvarkit by lindenb.
the class VcfPartitioner method partition.
@Override
public Map<String, ExecutionContext> partition(final int gridSize) {
LOG.info("creating partition for gridsize=" + gridSize);
final Map<String, ExecutionContext> map = new HashMap<>(gridSize);
for (int i = 0; i < 10; i++) {
final ExecutionContext exec = new ExecutionContext();
exec.put("contig", i);
map.put(String.valueOf(i), exec);
}
return map;
}
Aggregations