public class DocBasedVersionConstraintsProcessor extends UpdateRequestProcessor
next| Constructor and Description |
|---|
DocBasedVersionConstraintsProcessor(List<String> versionFields,
boolean ignoreOldUpdates,
List<String> deleteVersionParamNames,
boolean supportMissingVersionOnOldDocs,
boolean useFieldCache,
SolrQueryRequest req,
UpdateRequestProcessor next) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
newUpdateComparePasses(Comparable newUserVersion,
Comparable oldUserVersion,
String userVersionFieldName)
Given two comparable user versions, returns whether the new version is acceptable
to replace the old version.
|
void |
processAdd(AddUpdateCommand cmd) |
void |
processDelete(DeleteUpdateCommand cmd) |
protected boolean |
versionInUpdateIsAcceptable(Object[] newUserVersions,
Object[] oldUserVersions)
Returns whether or not the versions in the command are acceptable to be indexed.
|
close, doClose, finish, processCommit, processMergeIndexes, processRollbackpublic DocBasedVersionConstraintsProcessor(List<String> versionFields, boolean ignoreOldUpdates, List<String> deleteVersionParamNames, boolean supportMissingVersionOnOldDocs, boolean useFieldCache, SolrQueryRequest req, UpdateRequestProcessor next)
protected boolean versionInUpdateIsAcceptable(Object[] newUserVersions, Object[] oldUserVersions)
newUserVersions - New versions in update requestoldUserVersions - Old versions currently in solr indexprotected boolean newUpdateComparePasses(Comparable newUserVersion, Comparable oldUserVersion, String userVersionFieldName)
newUserVersion - User-specified version on the new version of the documentoldUserVersion - User-specified version on the old version of the documentuserVersionFieldName - Field name of the user versions being comparedpublic void processAdd(AddUpdateCommand cmd) throws IOException
processAdd in class UpdateRequestProcessorIOExceptionpublic void processDelete(DeleteUpdateCommand cmd) throws IOException
processDelete in class UpdateRequestProcessorIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.