Uses of Class
com.yahoo.document.update.ValueUpdate
Packages that use ValueUpdate
Package
Description
-
Uses of ValueUpdate in com.yahoo.document.json.readers
Methods in com.yahoo.document.json.readers that return ValueUpdateModifier and TypeMethodDescriptionstatic ValueUpdate
MapReader.createMapUpdate
(TokenBuffer buffer, DataType currentLevel, FieldValue keyParent, FieldValue topLevelKey, boolean ignoreUndefinedFields) static ValueUpdate
MapReader.createMapUpdate
(TokenBuffer buffer, Field field, boolean ignoreUndefinedFields) static ValueUpdate
SingleValueReader.readSingleUpdate
(TokenBuffer buffer, DataType expectedType, String action, boolean ignoreUndefinedFields) -
Uses of ValueUpdate in com.yahoo.document.serialization
Methods in com.yahoo.document.serialization that return ValueUpdateModifier and TypeMethodDescriptionVespaDocumentDeserializer6.getValueUpdate
(DataType superType, DataType subType) protected ValueUpdate
VespaDocumentDeserializer6.readTensorAddUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializerHead.readTensorAddUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializer6.readTensorModifyUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializerHead.readTensorModifyUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializer6.readTensorRemoveUpdate
(DataType type) protected ValueUpdate
VespaDocumentDeserializerHead.readTensorRemoveUpdate
(DataType type) -
Uses of ValueUpdate in com.yahoo.document.update
Subclasses of ValueUpdate in com.yahoo.document.updateModifier and TypeClassDescriptionclass
Value update representing an addition of a value (possibly with an associated weight) to a multi-valued data type.class
Value update representing an arithmetic operation on a numeric data type.class
Value update that represents assigning a new value.class
Value update that represents clearing a field.class
Value update that represents performing an encapsulated value update on a subvalue.class
Value update representing a removal of a value (and its associated weight, if any) from a multi-valued data type.class
An update used to add cells to a sparse or mixed tensor (has at least one mapped dimension).class
class
An update used to remove cells from a sparse tensor or dense sub-spaces from a mixed tensor.Fields in com.yahoo.document.update declared as ValueUpdateFields in com.yahoo.document.update with type parameters of type ValueUpdateMethods in com.yahoo.document.update that return ValueUpdateModifier and TypeMethodDescriptionstatic ValueUpdate
ValueUpdate.createAdd
(FieldValue value) Creates a new value update specifying an addition of a value to an array or a key to a weighted set (with default weight 1).static ValueUpdate
ValueUpdate.createAdd
(FieldValue key, Integer weight) Creates a new value update specifying an addition of a key (with a specified weight) to a weighted set.static ValueUpdate
ValueUpdate.createAssign
(FieldValue newValue) Creates a new value update that assigns a new value, completely overwriting the previous value.static ValueUpdate
ValueUpdate.createClear()
Creates a new value update that clears the field fromthe document.static ValueUpdate
ValueUpdate.createDecrement
(FieldValue key, Number decrement) Creates a new value update that decrements a weight in a weighted set.static ValueUpdate
ValueUpdate.createDecrement
(Number decrement) Creates a new value update that decrements a value.static ValueUpdate
ValueUpdate.createDivide
(FieldValue key, Number divisor) Creates a new value update that divides a weight in a weighted set.static ValueUpdate
ValueUpdate.createDivide
(Number divisor) Creates a new value update that divides a value.static ValueUpdate
ValueUpdate.createIncrement
(FieldValue key, Number increment) Creates a new value update that increments a weight in a weighted set.static ValueUpdate
ValueUpdate.createIncrement
(Number increment) Creates a new value update that increments a value.static ValueUpdate
ValueUpdate.createMap
(FieldValue value, ValueUpdate update) Creates a map value update, which is able to map an update to a value to a subvalue in an array or a weighted set.static ValueUpdate
ValueUpdate.createMultiply
(FieldValue key, Number factor) Creates a new value update that multiplies a weight in a weighted set.static ValueUpdate
ValueUpdate.createMultiply
(Number factor) Creates a new value update that multiplies a value.static ValueUpdate
ValueUpdate.createRemove
(FieldValue value) Creates a new value update specifying the removal of a value from an array or a key/weight from a weighted set.MapValueUpdate.getUpdate()
FieldUpdate.getValueUpdate
(int index) Get the value update at the specified index in the list of value updates.FieldUpdate.removeValueUpdate
(int index) Removes the value update at the specified position in the list of value updates.FieldUpdate.setValueUpdate
(int index, ValueUpdate update) Replaces the value update at the specified position in the list of value updates with the specified value update.Methods in com.yahoo.document.update that return types with arguments of type ValueUpdateModifier and TypeMethodDescriptionstatic List<ValueUpdate>
ValueUpdate.createAddAll
(WeightedSet<? extends FieldValue> set) Creates a new value update specifying an addition of all key/weight pairs in a weighted set to a weighted set.static List<ValueUpdate>
ValueUpdate.createAddAll
(List<? extends FieldValue> values) Creates a new value update specifying an addition of all values in a given list to an array.static List<ValueUpdate>
ValueUpdate.createRemoveAll
(WeightedSet<? extends FieldValue> values) Creates a new value update specifying the removal of all values in a given list from an array or weighted set.static List<ValueUpdate>
ValueUpdate.createRemoveAll
(List<? extends FieldValue> values) Creates a new value update specifying the removal of all values in a given list from an array or weighted set.FieldUpdate.getValueUpdates()
Get an unmodifiable list of all value updates that this field update specifies.FieldUpdate.getValueUpdates
(ValueUpdate.ValueUpdateClassID classID) Get value updates with the specified valueUpdateClassID.Methods in com.yahoo.document.update with parameters of type ValueUpdateModifier and TypeMethodDescriptionFieldUpdate.addValueUpdate
(int index, ValueUpdate valueUpdate) Adds a value update to the list of value updates.FieldUpdate.addValueUpdate
(ValueUpdate valueUpdate) Adds a value update to the list of value updates.static FieldUpdate
FieldUpdate.createMap
(Field field, FieldValue value, ValueUpdate update) Creates a new field update, with one encapsulated value update, which is able to map an update to a value to a subvalue in an array or a weighted set.static ValueUpdate
ValueUpdate.createMap
(FieldValue value, ValueUpdate update) Creates a map value update, which is able to map an update to a value to a subvalue in an array or a weighted set.FieldUpdate.setValueUpdate
(int index, ValueUpdate update) Replaces the value update at the specified position in the list of value updates with the specified value update.Method parameters in com.yahoo.document.update with type arguments of type ValueUpdateModifier and TypeMethodDescriptionFieldUpdate.addValueUpdates
(List<ValueUpdate> valueUpdates) Adds a list of value updates to the list of value updates.Constructors in com.yahoo.document.update with parameters of type ValueUpdate