Package org.apache.solr.update
Class UpdateCommand
- java.lang.Object
-
- org.apache.solr.update.UpdateCommand
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
AddUpdateCommand,CommitUpdateCommand,DeleteUpdateCommand,MergeIndexesCommand,RollbackUpdateCommand,SplitIndexCommand
public abstract class UpdateCommand extends Object implements Cloneable
An index update command encapsulated in an object (Command pattern)
-
-
Field Summary
Fields Modifier and Type Field Description static intBUFFERINGstatic intCLEAR_CACHESprotected intflagsstatic intIGNORE_AUTOCOMMITstatic intIGNORE_INDEXWRITERstatic intPEER_SYNCstatic intREPLAYprotected SolrQueryRequestreqprotected Stringrouteprotected longversion
-
Constructor Summary
Constructors Constructor Description UpdateCommand(SolrQueryRequest req)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description UpdateCommandclone()intgetFlags()SolrQueryRequestgetReq()StringgetRoute()io.opentracing.TracergetTracer()Distributed tracing Tracer.longgetVersion()abstract Stringname()voidsetFlags(int flags)voidsetReq(SolrQueryRequest req)voidsetRoute(String route)voidsetVersion(long version)StringtoString()
-
-
-
Field Detail
-
req
protected SolrQueryRequest req
-
version
protected long version
-
route
protected String route
-
flags
protected int flags
-
BUFFERING
public static int BUFFERING
-
REPLAY
public static int REPLAY
-
PEER_SYNC
public static int PEER_SYNC
-
IGNORE_AUTOCOMMIT
public static int IGNORE_AUTOCOMMIT
-
CLEAR_CACHES
public static int CLEAR_CACHES
-
IGNORE_INDEXWRITER
public static int IGNORE_INDEXWRITER
-
-
Constructor Detail
-
UpdateCommand
public UpdateCommand(SolrQueryRequest req)
-
-
Method Detail
-
name
public abstract String name()
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
getRoute
public String getRoute()
-
setRoute
public void setRoute(String route)
-
setFlags
public void setFlags(int flags)
-
getFlags
public int getFlags()
-
getReq
public SolrQueryRequest getReq()
-
setReq
public void setReq(SolrQueryRequest req)
-
getTracer
public io.opentracing.Tracer getTracer()
Distributed tracing Tracer. Never null but might implementNoopTracer.
-
clone
public UpdateCommand clone()
-
-