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 ValueUpdateMapReader.createMapUpdate(TokenBuffer buffer, DataType currentLevel, boolean ignoreUndefinedFields) static ValueUpdateMapReader.createMapUpdate(TokenBuffer buffer, Field field, boolean ignoreUndefinedFields) static ValueUpdateSingleValueReader.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 TypeMethodDescriptionprotected ValueUpdateVespaDocumentDeserializer6.readTensorAddUpdate(DataType type) Deprecated, for removal: This API element is subject to removal in a future version.protected ValueUpdateVespaDocumentDeserializerHead.readTensorAddUpdate(DataType type) protected ValueUpdateVespaDocumentDeserializer6.readTensorModifyUpdate(DataType type) Deprecated, for removal: This API element is subject to removal in a future version.protected ValueUpdateVespaDocumentDeserializerHead.readTensorModifyUpdate(DataType type) protected ValueUpdateVespaDocumentDeserializer6.readTensorRemoveUpdate(DataType type) Deprecated, for removal: This API element is subject to removal in a future version.protected ValueUpdateVespaDocumentDeserializerHead.readTensorRemoveUpdate(DataType type) -
Uses of ValueUpdate in com.yahoo.document.update
Subclasses of ValueUpdate in com.yahoo.document.updateModifier and TypeClassDescriptionclassValue update representing an addition of a value (possibly with an associated weight) to a multi-valued data type.classValue update representing an arithmetic operation on a numeric data type.classValue update that represents assigning a new value.classA value update that removes the current value of the field.classValue update that represents performing an encapsulated value update on a subvalue.classValue update representing a removal of a value (and its associated weight, if any) from a multi-valued data type.classAn update used to add cells to a sparse or mixed tensor (has at least one mapped dimension).classclassAn 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 ValueUpdateValueUpdate.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 ValueUpdateValueUpdate.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 ValueUpdateValueUpdate.createAssign(FieldValue newValue) Creates a new value update that assigns a new value, completely overwriting the previous value.static ValueUpdateValueUpdate.createClear()Creates a new value update that clears the field from the document.static ValueUpdateValueUpdate.createDecrement(FieldValue key, Number decrement) Creates a new value update that decrements a weight in a weighted set.static ValueUpdateValueUpdate.createDecrement(Number decrement) Creates a new value update that decrements a value.static ValueUpdateValueUpdate.createDivide(FieldValue key, Number divisor) Creates a new value update that divides a weight in a weighted set.static ValueUpdateValueUpdate.createDivide(Number divisor) Creates a new value update that divides a value.static ValueUpdateValueUpdate.createIncrement(FieldValue key, Number increment) Creates a new value update that increments a weight in a weighted set.static ValueUpdateValueUpdate.createIncrement(Number increment) Creates a new value update that increments a value.static ValueUpdateValueUpdate.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 ValueUpdateValueUpdate.createMultiply(FieldValue key, Number factor) Creates a new value update that multiplies a weight in a weighted set.static ValueUpdateValueUpdate.createMultiply(Number factor) Creates a new value update that multiplies a value.static ValueUpdateValueUpdate.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 FieldUpdateFieldUpdate.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 ValueUpdateValueUpdate.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