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 int
CACHE_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 void
doClose()
Override to implement resource release logic that *must* be called at the end of a request.void
finish()
void
processAdd(AddUpdateCommand cmd)
void
processCommit(CommitUpdateCommand cmd)
void
processDelete(DeleteUpdateCommand cmd)
static UpdateRequestProcessor
wrap(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:
processAdd
in classUpdateRequestProcessor
- Throws:
IOException
-
processDelete
public void processDelete(DeleteUpdateCommand cmd) throws IOException
- Overrides:
processDelete
in classUpdateRequestProcessor
- Throws:
IOException
-
processCommit
public void processCommit(CommitUpdateCommand cmd) throws IOException
- Overrides:
processCommit
in classUpdateRequestProcessor
- Throws:
IOException
-
finish
public void finish() throws IOException
- Overrides:
finish
in classUpdateRequestProcessor
- Throws:
IOException
-
doClose
protected void doClose()
Description copied from class:UpdateRequestProcessor
Override to implement resource release logic that *must* be called at the end of a request.- Overrides:
doClose
in classUpdateRequestProcessor
-
-