Package org.apache.solr.update.processor
Class RoutedAliasUpdateProcessor
- java.lang.Object
-
- org.apache.solr.update.processor.UpdateRequestProcessor
-
- org.apache.solr.update.processor.RoutedAliasUpdateProcessor
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class RoutedAliasUpdateProcessor extends UpdateRequestProcessor
Distributes update requests to a series of collections partitioned by a "routing" field. Issues requests to create new collections on-demand.Depends on this core having a special core property that points to the alias name that this collection is a part of. And further requires certain properties on the Alias. Collections pointed to by the alias must be named for the alias plus underscored ('_') and a routing specifier specific to the type of routed alias. These collections should not be created by the user, but are created automatically by the routed alias.
- Since:
- 7.2.0 (formerly known as TimeRoutedAliasUpdateProcessor)
-
-
Field Summary
Fields Modifier and Type Field Description static intCACHE_FOR_MILLIS-
Fields inherited from class org.apache.solr.update.processor.UpdateRequestProcessor
next
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoClose()Override to implement resource release logic that *must* be called at the end of a request.voidfinish()voidprocessAdd(AddUpdateCommand cmd)voidprocessCommit(CommitUpdateCommand cmd)voidprocessDelete(DeleteUpdateCommand cmd)static UpdateRequestProcessorwrap(SolrQueryRequest req, UpdateRequestProcessor next)-
Methods inherited from class org.apache.solr.update.processor.UpdateRequestProcessor
close, processMergeIndexes, processRollback
-
-
-
-
Field Detail
-
CACHE_FOR_MILLIS
public static final int CACHE_FOR_MILLIS
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrap
public static UpdateRequestProcessor wrap(SolrQueryRequest req, UpdateRequestProcessor next)
-
processAdd
public void processAdd(AddUpdateCommand cmd) throws IOException
- Overrides:
processAddin classUpdateRequestProcessor- Throws:
IOException
-
processDelete
public void processDelete(DeleteUpdateCommand cmd) throws IOException
- Overrides:
processDeletein classUpdateRequestProcessor- Throws:
IOException
-
processCommit
public void processCommit(CommitUpdateCommand cmd) throws IOException
- Overrides:
processCommitin classUpdateRequestProcessor- Throws:
IOException
-
finish
public void finish() throws IOException- Overrides:
finishin classUpdateRequestProcessor- Throws:
IOException
-
doClose
protected void doClose()
Description copied from class:UpdateRequestProcessorOverride to implement resource release logic that *must* be called at the end of a request.- Overrides:
doClosein classUpdateRequestProcessor
-
-