public class DistributedUpdateProcessor extends UpdateRequestProcessor
Modifier and Type | Class and Description |
---|---|
static class |
DistributedUpdateProcessor.DistribPhase
Values this processor supports for the
DISTRIB_UPDATE_PARAM . |
static class |
DistributedUpdateProcessor.DistributedUpdatesAsyncException |
static class |
DistributedUpdateProcessor.RequestReplicationTracker
Keeps track of the replication factor achieved for a distributed update request
originated in this distributed update processor.
|
Modifier and Type | Field and Description |
---|---|
static String |
COMMIT_END_POINT |
static String |
DISTRIB_FROM |
static String |
DISTRIB_FROM_COLLECTION |
static String |
DISTRIB_FROM_PARENT |
static String |
DISTRIB_FROM_SHARD |
static String |
DISTRIB_INPLACE_PREVVERSION |
static String |
LOG_REPLAY |
Constructor and Description |
---|
DistributedUpdateProcessor(SolrQueryRequest req,
SolrQueryResponse rsp,
AtomicUpdateDocumentMerger docMerger,
UpdateRequestProcessor next)
Specification of AtomicUpdateDocumentMerger is currently experimental.
|
DistributedUpdateProcessor(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
Modifier and Type | Method and Description |
---|---|
void |
doDeleteByQuery(DeleteUpdateCommand cmd) |
protected ModifiableSolrParams |
filterParams(SolrParams params) |
void |
finish() |
static boolean |
getNonZkLeaderAssumption(SolrQueryRequest req)
Returns a boolean indicating whether or not the caller should behave as
if this is the "leader" even when ZooKeeper is not enabled.
|
void |
processAdd(AddUpdateCommand cmd) |
void |
processCommit(CommitUpdateCommand cmd) |
void |
processDelete(DeleteUpdateCommand cmd) |
protected boolean |
versionAdd(AddUpdateCommand cmd) |
protected boolean |
versionDelete(DeleteUpdateCommand cmd) |
protected void |
versionDeleteByQuery(DeleteUpdateCommand cmd) |
close, doClose, processMergeIndexes, processRollback
public static final String DISTRIB_FROM_SHARD
public static final String DISTRIB_FROM_COLLECTION
public static final String DISTRIB_FROM_PARENT
public static final String DISTRIB_FROM
public static final String DISTRIB_INPLACE_PREVVERSION
public static final String COMMIT_END_POINT
public static final String LOG_REPLAY
public DistributedUpdateProcessor(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
public DistributedUpdateProcessor(SolrQueryRequest req, SolrQueryResponse rsp, AtomicUpdateDocumentMerger docMerger, UpdateRequestProcessor next)
public void processAdd(AddUpdateCommand cmd) throws IOException
processAdd
in class UpdateRequestProcessor
IOException
protected boolean versionAdd(AddUpdateCommand cmd) throws IOException
IOException
- If there is a low-level I/O error.public void processDelete(DeleteUpdateCommand cmd) throws IOException
processDelete
in class UpdateRequestProcessor
IOException
protected ModifiableSolrParams filterParams(SolrParams params)
public void doDeleteByQuery(DeleteUpdateCommand cmd) throws IOException
IOException
protected void versionDeleteByQuery(DeleteUpdateCommand cmd) throws IOException
IOException
protected boolean versionDelete(DeleteUpdateCommand cmd) throws IOException
IOException
public void processCommit(CommitUpdateCommand cmd) throws IOException
processCommit
in class UpdateRequestProcessor
IOException
public void finish() throws IOException
finish
in class UpdateRequestProcessor
IOException
public static boolean getNonZkLeaderAssumption(SolrQueryRequest req)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.