- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {DateTime d =
new DateTime()
DateTimeFormatter formatter;String text;formatter.parseDateTime(text)
Object instant;new DateTime(instant)
- Smart code suggestions by Codota
}
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { if (ontologiesSolrUrl == null) { throw new NullPointerException("ontologiesSolrUrl is null"); } HttpSolrServer ontologiesSolrServer = createSolrServer(); OntologyIndexer ontologyIndexer = new OntologyIndexer(ontologiesSolrServer); if (taxonomyOntologyMappings != null) { indexUniprotTaxonomy = true; } if (indexUniprotTaxonomy) { if (taxonomyOntologyMappings == null) { ontologyIndexer.indexUniprotTaxonomy(); } else { for (OntologyMapping om : taxonomyOntologyMappings) { ontologyIndexer.indexOntology(new UniprotTaxonomyOntologyIterator(om.getUrl())); } } } ontologyIndexer.indexObo(oboOntologyMappings.toArray(new OntologyMapping[oboOntologyMappings.size()])); long count = countDocs(ontologiesSolrServer); contribution.getExitStatus().addExitDescription("Total docs in index: "+count); ontologiesSolrServer.shutdown(); return RepeatStatus.FINISHED; }