Package com.yahoo.document.update
Class MapValueUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate
com.yahoo.document.update.MapValueUpdate
Value update that represents performing an encapsulated value update on a subvalue. Currently, there are two multi-value data types in Vespa, array and weighted set.
- For an array, the value must be an Integer, and the update must represent a legal operation on the subtype of the array.
- For a weighted set, the value must be a key of the same type as the subtype of the weighted set, and the update must represent a legal operation on an integer 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 key of the nested updateinthashCode()voidserialize(DocumentUpdateWriter data, DataType superType) voidsetValue(FieldValue value) Sets the key of the nested updatetoString()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
-
update
-
-
Constructor Details
-
MapValueUpdate
-
-
Method Details
-
getValue
Returns the key of the nested update- Specified by:
getValuein classValueUpdate
-
setValue
Sets the key of the nested update- Specified by:
setValuein classValueUpdate
-
getUpdate
-
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
-