Search in sources :

Example 1 with RunUpdateProcessorFactory

use of org.apache.solr.update.processor.RunUpdateProcessorFactory in project lucene-solr by apache.

the class SolrCore method loadUpdateProcessorChains.

/**
   * Load the request processors
   */
private Map<String, UpdateRequestProcessorChain> loadUpdateProcessorChains() {
    Map<String, UpdateRequestProcessorChain> map = new HashMap<>();
    UpdateRequestProcessorChain def = initPlugins(map, UpdateRequestProcessorChain.class, UpdateRequestProcessorChain.class.getName());
    if (def == null) {
        def = map.get(null);
    }
    if (def == null) {
        log.debug("no updateRequestProcessorChain defined as default, creating implicit default");
        // construct the default chain
        UpdateRequestProcessorFactory[] factories = new UpdateRequestProcessorFactory[] { new LogUpdateProcessorFactory(), new DistributedUpdateProcessorFactory(), new RunUpdateProcessorFactory() };
        def = new UpdateRequestProcessorChain(Arrays.asList(factories), this);
    }
    map.put(null, def);
    map.put("", def);
    return map;
}
Also used : UpdateRequestProcessorFactory(org.apache.solr.update.processor.UpdateRequestProcessorFactory) RunUpdateProcessorFactory(org.apache.solr.update.processor.RunUpdateProcessorFactory) LogUpdateProcessorFactory(org.apache.solr.update.processor.LogUpdateProcessorFactory) LinkedHashMap(java.util.LinkedHashMap) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) HashMap(java.util.HashMap) DistributedUpdateProcessorFactory(org.apache.solr.update.processor.DistributedUpdateProcessorFactory) UpdateRequestProcessorChain(org.apache.solr.update.processor.UpdateRequestProcessorChain)

Aggregations

HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 DistributedUpdateProcessorFactory (org.apache.solr.update.processor.DistributedUpdateProcessorFactory)1 LogUpdateProcessorFactory (org.apache.solr.update.processor.LogUpdateProcessorFactory)1 RunUpdateProcessorFactory (org.apache.solr.update.processor.RunUpdateProcessorFactory)1 UpdateRequestProcessorChain (org.apache.solr.update.processor.UpdateRequestProcessorChain)1 UpdateRequestProcessorFactory (org.apache.solr.update.processor.UpdateRequestProcessorFactory)1