|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.solr.core.query.PartialUpdate
public class PartialUpdate
Implementation of Update to be used when performing atomic updates against solr.
Update can directly be saved via SolrOperations.saveBean(Object)
| Constructor Summary | |
|---|---|
PartialUpdate(Field idField,
Object idFieldValue)
|
|
PartialUpdate(String idFieldName,
Object idFieldValue)
|
|
| Method Summary | |
|---|---|
void |
add(String fieldName,
Object value)
Add field with given name and value to the fields to be updated. |
void |
add(UpdateField field)
Add UpdateField to the list of fields to be updated |
void |
addValueToField(String fieldName,
Object value)
Add field with given name and value using UpateAction.ADD to the fields to be updated. |
ValueHoldingField |
getIdField()
get id field of document to update |
List<UpdateField> |
getUpdates()
List of fields and values to update |
Object |
getVersion()
Document Version _version_ |
void |
increaseValueOfField(String fieldName,
Object value)
Add field with given name and value using UpateAction.INC to the fields to be updated. |
void |
setValueOfField(String fieldName,
Object value)
Add field with given name and value using UpateAction.SET to the fields to be updated. |
void |
setVersion(Object documentVersion)
set _version_ of document to apply update to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PartialUpdate(String idFieldName,
Object idFieldValue)
public PartialUpdate(Field idField,
Object idFieldValue)
| Method Detail |
|---|
public ValueHoldingField getIdField()
Update
getIdField in interface Update
public void add(String fieldName,
Object value)
UpateAction will be
UpateAction.SET.
fieldName - value - public void add(UpdateField field)
UpdateField to the list of fields to be updated
field -
public void addValueToField(String fieldName,
Object value)
UpateAction.ADD to the fields to be updated.
fieldName - value -
public void setValueOfField(String fieldName,
Object value)
UpateAction.SET to the fields to be updated.
fieldName - value -
public void increaseValueOfField(String fieldName,
Object value)
UpateAction.INC to the fields to be updated.
fieldName - value - public List<UpdateField> getUpdates()
Update
getUpdates in interface Updatepublic Object getVersion()
Update_version_
getVersion in interface Updatepublic void setVersion(Object documentVersion)
_version_ of document to apply update to. Use null to skip version check in solr.
documentVersion -
|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||