Package com.yahoo.document.update
Class AssignValueUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate
com.yahoo.document.update.AssignValueUpdate
Value update that represents assigning a new value.
- Author:
- Einar M R Rosenvinge
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.document.update.ValueUpdate
ValueUpdate.ValueUpdateClassID -
Field Summary
FieldsFields inherited from class com.yahoo.document.update.ValueUpdate
valueUpdateClassID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyTo(FieldValue fval) protected voidcheckCompatibility(DataType fieldType) booleangetValue()Returns the value of this value update.inthashCode()voidserialize(DocumentUpdateWriter data, DataType superType) voidsetValue(FieldValue value) Sets the value to assign.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
-
AssignValueUpdate
-
-
Method Details
-
getValue
Returns the value of this value update.
The type of the value is defined by the type of this field in this documents DocumentType - a java.lang primitive wrapper for single value types, java.util.List for arrays and
WeightedSetfor weighted sets.- Specified by:
getValuein classValueUpdate- Returns:
- the value of this ValueUpdate
- See Also:
-
setValue
Sets the value to assign.
The type of the value must match the type of this field in this documents DocumentType - a java.lang primitive wrapper for single value types, java.util.List for arrays and
WeightedSetfor weighted sets.- Specified by:
setValuein classValueUpdate
-
applyTo
- Specified by:
applyToin classValueUpdate
-
checkCompatibility
- Specified by:
checkCompatibilityin classValueUpdate
-
serialize
- Specified by:
serializein classValueUpdate
-
equals
- Overrides:
equalsin classValueUpdate
-
hashCode
public int hashCode()- Overrides:
hashCodein classValueUpdate
-
toString
- Overrides:
toStringin classValueUpdate
-