Package com.yahoo.document.update
Class RemoveValueUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate
com.yahoo.document.update.RemoveValueUpdate
Value update representing a removal of a value (and its associated weight, if any) from a multi-valued data type.
Deprecated: Use RemoveFieldPathUpdate instead.- Author:
- Einar M R Rosenvinge
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.document.update.ValueUpdate
ValueUpdate.ValueUpdateClassID
-
Field Summary
Fields inherited from class com.yahoo.document.update.ValueUpdate
valueUpdateClassID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyTo
(FieldValue fval) protected void
checkCompatibility
(DataType fieldType) boolean
getValue()
Sets the key this should removeint
hashCode()
void
serialize
(DocumentUpdateWriter data, DataType superType) void
setValue
(FieldValue value) Sets the value of this.toString()
Methods inherited from class com.yahoo.document.update.ValueUpdate
createAdd, createAdd, createAddAll, createAddAll, createAssign, createClear, createDecrement, createDecrement, createDivide, createDivide, createIncrement, createIncrement, createMap, createMultiply, createMultiply, createRemove, createRemoveAll, createRemoveAll, getValueUpdateClassID
-
Field Details
-
value
-
-
Constructor Details
-
RemoveValueUpdate
-
-
Method Details
-
getValue
Sets the key this should remove- Specified by:
getValue
in classValueUpdate
-
setValue
Description copied from class:ValueUpdate
Sets the value of this. Ignored by update who have no value- Specified by:
setValue
in classValueUpdate
-
applyTo
- Specified by:
applyTo
in classValueUpdate
-
checkCompatibility
- Specified by:
checkCompatibility
in classValueUpdate
-
serialize
- Specified by:
serialize
in classValueUpdate
-
equals
- Overrides:
equals
in classValueUpdate
-
hashCode
public int hashCode()- Overrides:
hashCode
in classValueUpdate
-
toString
- Overrides:
toString
in classValueUpdate
-