@Configuration @EnableBatchProcessing public class SparqlExportJobConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JOBPARAM_DEFAULT_GRAPH_URIS |
static String |
JOBPARAM_QUERY_STRING |
static String |
JOBPARAM_SERVICE_URI
Attention: You have to name these beans jobBuilders and stepbuilders
respectively.
|
static String |
JOBPARAM_TARGET_RESOURCE |
| Constructor and Description |
|---|
SparqlExportJobConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.Step |
dataCountStep(com.hp.hpl.jena.query.Query query,
QueryExecutionFactory sparqlService) |
org.springframework.batch.core.Step |
dataFetchStep() |
org.springframework.batch.core.explore.support.JobExplorerFactoryBean |
jobExplorer(DataSource dataSource) |
org.springframework.batch.core.launch.JobLauncher |
jobLauncher(org.springframework.batch.core.repository.JobRepository jobRepository) |
org.springframework.batch.core.launch.JobOperator |
jobOperator(org.springframework.batch.core.explore.JobExplorer jobExplorer,
org.springframework.batch.core.launch.JobLauncher jobLauncher,
org.springframework.batch.core.repository.JobRepository jobRepository,
org.springframework.batch.core.configuration.ListableJobLocator jobRegistry) |
org.springframework.batch.item.file.transform.LineAggregator<com.hp.hpl.jena.sparql.engine.binding.Binding> |
lineAggregator(com.hp.hpl.jena.query.Query query) |
org.springframework.batch.item.ItemProcessor<com.hp.hpl.jena.sparql.engine.binding.Binding,com.hp.hpl.jena.sparql.engine.binding.Binding> |
processor() |
com.hp.hpl.jena.query.Query |
query(String queryString) |
SparqlPagingItemReader<com.hp.hpl.jena.sparql.engine.binding.Binding> |
reader(com.hp.hpl.jena.query.Query query,
QueryExecutionFactory sparqlService,
String queryString) |
org.springframework.batch.core.Job |
sparqlExportJob() |
QueryExecutionFactory |
sparqlService(String serviceUri,
String defaultGraphUris) |
org.springframework.core.task.TaskExecutor |
taskExecutor() |
org.springframework.batch.item.file.ResourceAwareItemWriterItemStream<com.hp.hpl.jena.sparql.engine.binding.Binding> |
writer(com.hp.hpl.jena.query.Query query,
String targetResource) |
public static final String JOBPARAM_SERVICE_URI
public static final String JOBPARAM_DEFAULT_GRAPH_URIS
public static final String JOBPARAM_QUERY_STRING
public static final String JOBPARAM_TARGET_RESOURCE
@Bean @Autowired public org.springframework.batch.core.explore.support.JobExplorerFactoryBean jobExplorer(DataSource dataSource)
@Bean
@Autowired
public org.springframework.batch.core.launch.JobOperator jobOperator(org.springframework.batch.core.explore.JobExplorer jobExplorer,
org.springframework.batch.core.launch.JobLauncher jobLauncher,
org.springframework.batch.core.repository.JobRepository jobRepository,
org.springframework.batch.core.configuration.ListableJobLocator jobRegistry)
@Bean public org.springframework.core.task.TaskExecutor taskExecutor()
@Bean @Autowired public org.springframework.batch.core.launch.JobLauncher jobLauncher(org.springframework.batch.core.repository.JobRepository jobRepository)
@Bean public org.springframework.batch.core.Job sparqlExportJob()
@Bean
@Autowired
public org.springframework.batch.core.Step dataCountStep(com.hp.hpl.jena.query.Query query,
QueryExecutionFactory sparqlService)
@Bean public org.springframework.batch.core.Step dataFetchStep()
@Bean
@StepScope
public com.hp.hpl.jena.query.Query query(@Value(value="#{jobParameters[queryString]}")
String queryString)
@Bean @StepScope public QueryExecutionFactory sparqlService(@Value(value="#{jobParameters[serviceUri]}") String serviceUri, @Value(value="#{jobParameters[defaultGraphUris]}") String defaultGraphUris)
@Bean @StepScope @Autowired public SparqlPagingItemReader<com.hp.hpl.jena.sparql.engine.binding.Binding> reader(com.hp.hpl.jena.query.Query query, QueryExecutionFactory sparqlService, @Value(value="#{jobParameters[queryString]}") String queryString)
@Bean
@StepScope
@Autowired
public org.springframework.batch.item.file.ResourceAwareItemWriterItemStream<com.hp.hpl.jena.sparql.engine.binding.Binding> writer(com.hp.hpl.jena.query.Query query,
@Value(value="#{jobParameters[targetResource]}")
String targetResource)
@Bean @StepScope @Autowired public org.springframework.batch.item.file.transform.LineAggregator<com.hp.hpl.jena.sparql.engine.binding.Binding> lineAggregator(com.hp.hpl.jena.query.Query query)
@Bean @StepScope @Autowired public org.springframework.batch.item.ItemProcessor<com.hp.hpl.jena.sparql.engine.binding.Binding,com.hp.hpl.jena.sparql.engine.binding.Binding> processor()
Copyright © 2014. All rights reserved.