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.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 org.slf4j.Logger |
log |
static String |
LOG_REPLAY |
static String |
VERSION_FIELD |
Constructor and Description |
---|
DistributedUpdateProcessor(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
Modifier and Type | Method and Description |
---|---|
void |
doDeleteByQuery(DeleteUpdateCommand cmd) |
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.
|
static boolean |
isAtomicUpdate(AddUpdateCommand cmd)
Utility method that examines the SolrInputDocument in an AddUpdateCommand
and returns true if the documents contains atomic update instructions.
|
void |
processAdd(AddUpdateCommand cmd) |
void |
processCommit(CommitUpdateCommand cmd) |
void |
processDelete(DeleteUpdateCommand cmd) |
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 org.slf4j.Logger log
public static final String COMMIT_END_POINT
public static final String LOG_REPLAY
public static final String VERSION_FIELD
public DistributedUpdateProcessor(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
public void processAdd(AddUpdateCommand cmd) throws IOException
processAdd
in class UpdateRequestProcessor
IOException
public static boolean isAtomicUpdate(AddUpdateCommand cmd)
public void processDelete(DeleteUpdateCommand cmd) throws IOException
processDelete
in class UpdateRequestProcessor
IOException
public void doDeleteByQuery(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-2014 Apache Software Foundation. All Rights Reserved.