|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.update.processor.UpdateRequestProcessorChain
public final class UpdateRequestProcessorChain
Manages a chain of UpdateRequestProcessorFactories.
Chain can be configured via solrconfig.xml:
<updateRequestProcessors name="key" default="true">
<processor class="PathToClass1" />
<processor class="PathToClass2" />
<processor class="solr.LogUpdateProcessorFactory" >
<int name="maxNumToLog">100</int>
</processor>
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessors>
Allmost all processor chains should end with an instance of
RunUpdateProcessorFactory unless the user is explicitly
executing the update commands in an alternative custom
UpdateRequestProcessorFactory.
UpdateRequestProcessorFactory,
init(org.apache.solr.core.PluginInfo),
createProcessor(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)| Field Summary | |
|---|---|
static org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
UpdateRequestProcessorChain(SolrCore solrCore)
|
|
UpdateRequestProcessorChain(UpdateRequestProcessorFactory[] chain,
SolrCore solrCore)
Creates a chain backed directly by the specified array. |
|
| Method Summary | |
|---|---|
UpdateRequestProcessor |
createProcessor(SolrQueryRequest req,
SolrQueryResponse rsp)
Uses the factories in this chain to creates a new UpdateRequestProcessor instance specific for this request. |
UpdateRequestProcessorFactory[] |
getFactories()
Returns the underlying array of factories used in this chain. |
void |
init(PluginInfo info)
Initializes the chain using the factories specified by the PluginInfo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.slf4j.Logger log
| Constructor Detail |
|---|
public UpdateRequestProcessorChain(SolrCore solrCore)
public UpdateRequestProcessorChain(UpdateRequestProcessorFactory[] chain,
SolrCore solrCore)
createProcessor
| Method Detail |
|---|
public void init(PluginInfo info)
PluginInfo.
if the chain includes the RunUpdateProcessorFactory, but
does not include an implementation of the
DistributingUpdateProcessorFactory interface, then an
instance of DistributedUpdateProcessorFactory will be
injected immediately prior to the RunUpdateProcessorFactory.
init in interface PluginInfoInitializedDistributingUpdateProcessorFactory,
RunUpdateProcessorFactory,
DistributedUpdateProcessorFactory
public UpdateRequestProcessor createProcessor(SolrQueryRequest req,
SolrQueryResponse rsp)
UpdateRequestProcessor instance specific for this request.
If the DISTRIB_UPDATE_PARAM is present in the request and is
non-blank, then any factory in this chain prior to the instance of
DistributingUpdateProcessorFactory will be skipped,
and the UpdateRequestProcessor returned will be from that
DistributingUpdateProcessorFactory
UpdateRequestProcessorFactory.getInstance(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse, org.apache.solr.update.processor.UpdateRequestProcessor),
DistributingUpdateProcessorFactory.DISTRIB_UPDATE_PARAMpublic UpdateRequestProcessorFactory[] getFactories()
createProcessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||