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
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()
Returns the key of the nested updateint
hashCode()
void
serialize
(DocumentUpdateWriter data, DataType superType) void
setValue
(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:
getValue
in classValueUpdate
-
setValue
Sets the key of the nested update- Specified by:
setValue
in classValueUpdate
-
getUpdate
-
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
-