|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.update.UpdateHandler
public abstract class UpdateHandler
UpdateHandler
handles requests to change the index
(adds, deletes, commits, optimizes, etc).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean |
---|
SolrInfoMBean.Category |
Field Summary | |
---|---|
protected Vector<SolrEventListener> |
commitCallbacks
|
protected SolrCore |
core
|
protected SchemaField |
idField
|
protected FieldType |
idFieldType
|
protected static org.slf4j.Logger |
log
|
protected Vector<SolrEventListener> |
optimizeCallbacks
|
protected IndexSchema |
schema
|
protected Vector<SolrEventListener> |
softCommitCallbacks
|
protected UpdateLog |
ulog
|
Constructor Summary | |
---|---|
UpdateHandler(SolrCore core)
|
Method Summary | |
---|---|
abstract int |
addDoc(AddUpdateCommand cmd)
|
protected void |
callPostCommitCallbacks()
|
protected void |
callPostOptimizeCallbacks()
|
protected void |
callPostSoftCommitCallbacks()
|
abstract void |
close()
|
abstract void |
commit(CommitUpdateCommand cmd)
|
abstract void |
decref()
Called when a SolrCore using this UpdateHandler is closed. |
abstract void |
delete(DeleteUpdateCommand cmd)
|
abstract void |
deleteByQuery(DeleteUpdateCommand cmd)
|
abstract SolrCoreState |
getSolrCoreState()
|
abstract UpdateLog |
getUpdateLog()
|
abstract void |
incref()
Called when this UpdateHandler is shared with another SolrCore. |
abstract int |
mergeIndexes(MergeIndexesCommand cmd)
|
abstract void |
newIndexWriter()
Called when the Writer should be opened again - eg when replication replaces all of the index files. |
void |
registerCommitCallback(SolrEventListener listener)
NOTE: this function is not thread safe. |
void |
registerOptimizeCallback(SolrEventListener listener)
NOTE: this function is not thread safe. |
void |
registerSoftCommitCallback(SolrEventListener listener)
NOTE: this function is not thread safe. |
abstract void |
rollback(RollbackUpdateCommand cmd)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.solr.core.SolrInfoMBean |
---|
getCategory, getDescription, getDocs, getName, getSource, getStatistics, getVersion |
Field Detail |
---|
protected static final org.slf4j.Logger log
protected final SolrCore core
protected final IndexSchema schema
protected final SchemaField idField
protected final FieldType idFieldType
protected Vector<SolrEventListener> commitCallbacks
protected Vector<SolrEventListener> softCommitCallbacks
protected Vector<SolrEventListener> optimizeCallbacks
protected UpdateLog ulog
Constructor Detail |
---|
public UpdateHandler(SolrCore core)
Method Detail |
---|
public abstract void decref()
public abstract void incref()
protected void callPostCommitCallbacks()
protected void callPostSoftCommitCallbacks()
protected void callPostOptimizeCallbacks()
public abstract void newIndexWriter() throws IOException
IOException
public abstract SolrCoreState getSolrCoreState()
public abstract int addDoc(AddUpdateCommand cmd) throws IOException
IOException
public abstract void delete(DeleteUpdateCommand cmd) throws IOException
IOException
public abstract void deleteByQuery(DeleteUpdateCommand cmd) throws IOException
IOException
public abstract int mergeIndexes(MergeIndexesCommand cmd) throws IOException
IOException
public abstract void commit(CommitUpdateCommand cmd) throws IOException
IOException
public abstract void rollback(RollbackUpdateCommand cmd) throws IOException
IOException
public abstract void close() throws IOException
IOException
public abstract UpdateLog getUpdateLog()
public void registerCommitCallback(SolrEventListener listener)
inform( SolrCore core )
function for SolrCoreAware
classes.
Outside inform
, this could potentially throw a ConcurrentModificationException
SolrCoreAware
public void registerSoftCommitCallback(SolrEventListener listener)
inform( SolrCore core )
function for SolrCoreAware
classes.
Outside inform
, this could potentially throw a ConcurrentModificationException
SolrCoreAware
public void registerOptimizeCallback(SolrEventListener listener)
inform( SolrCore core )
function for SolrCoreAware
classes.
Outside inform
, this could potentially throw a ConcurrentModificationException
SolrCoreAware
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |