Package com.yahoo.document.update
Class AddValueUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate
com.yahoo.document.update.AddValueUpdate
Value update representing an addition of a value (possibly with an associated weight) to a multi-valued data type.
- 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 val) protected voidcheckCompatibility(DataType fieldType) booleangetValue()Returns the value of this value update.intReturn the associated weight of this value update.inthashCode()voidserialize(DocumentUpdateWriter data, DataType superType) voidsetValue(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
-
weight
-
-
Constructor Details
-
AddValueUpdate
-
-
Method Details
-
getValue
Returns the value of this value update.- Specified by:
getValuein classValueUpdate- Returns:
- the value of this ValueUpdate
- See Also:
-
setValue
Description copied from class:ValueUpdateSets the value of this. Ignored by update who have no value- Specified by:
setValuein classValueUpdate
-
getWeight
public int getWeight()Return the associated weight of this value update.- Returns:
- the weight of this value update, or 1 if unset
-
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
-