Uses of Class
com.yahoo.document.update.ValueUpdate
-
Packages that use ValueUpdate Package Description com.yahoo.document.json.readers com.yahoo.document.serialization com.yahoo.document.update -
-
Uses of ValueUpdate in com.yahoo.document.json.readers
Methods in com.yahoo.document.json.readers that return ValueUpdate Modifier and Type Method Description static ValueUpdate
MapReader. createMapUpdate(TokenBuffer buffer, DataType currentLevel, FieldValue keyParent, FieldValue topLevelKey)
static ValueUpdate
MapReader. createMapUpdate(TokenBuffer buffer, Field field)
static ValueUpdate
SingleValueReader. readSingleUpdate(TokenBuffer buffer, DataType expectedType, java.lang.String action)
-
Uses of ValueUpdate in com.yahoo.document.serialization
Methods in com.yahoo.document.serialization that return ValueUpdate Modifier and Type Method Description ValueUpdate
VespaDocumentDeserializer6. 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.update Modifier and Type Class Description class
AddValueUpdate
Value update representing an addition of a value (possibly with an associated weight) to a multi-valued data type.class
ArithmeticValueUpdate
Value update representing an arithmetic operation on a numeric data type.class
AssignValueUpdate
Value update that represents assigning a new value.class
ClearValueUpdate
Value update that represents clearing a field.class
MapValueUpdate
Value update that represents performing an encapsulated value update on a subvalue.class
RemoveValueUpdate
Value update representing a removal of a value (and its associated weight, if any) from a multi-valued data type.class
TensorAddUpdate
An update used to add cells to a sparse or mixed tensor (has at least one mapped dimension).class
TensorModifyUpdate
class
TensorRemoveUpdate
An update used to remove cells from a sparse tensor (has only mapped dimensions).Fields in com.yahoo.document.update declared as ValueUpdate Modifier and Type Field Description protected ValueUpdate
MapValueUpdate. update
Fields in com.yahoo.document.update with type parameters of type ValueUpdate Modifier and Type Field Description protected java.util.List<ValueUpdate>
FieldUpdate. valueUpdates
Methods in com.yahoo.document.update that return ValueUpdate Modifier and Type Method Description static 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, java.lang.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, java.lang.Number decrement)
Creates a new value update that decrements a weight in a weighted set.static ValueUpdate
ValueUpdate. createDecrement(java.lang.Number decrement)
Creates a new value update that decrements a value.static ValueUpdate
ValueUpdate. createDivide(FieldValue key, java.lang.Number divisor)
Creates a new value update that divides a weight in a weighted set.static ValueUpdate
ValueUpdate. createDivide(java.lang.Number divisor)
Creates a new value update that divides a value.static ValueUpdate
ValueUpdate. createIncrement(FieldValue key, java.lang.Number increment)
Creates a new value update that increments a weight in a weighted set.static ValueUpdate
ValueUpdate. createIncrement(java.lang.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, java.lang.Number factor)
Creates a new value update that multiplies a weight in a weighted set.static ValueUpdate
ValueUpdate. createMultiply(java.lang.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.ValueUpdate
MapValueUpdate. getUpdate()
ValueUpdate
FieldUpdate. getValueUpdate(int index)
Get the value update at the specified index in the list of value updates.ValueUpdate
FieldUpdate. removeValueUpdate(int index)
Removes the value update at the specified position in the list of value updates.ValueUpdate
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 ValueUpdate Modifier and Type Method Description static java.util.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 java.util.List<ValueUpdate>
ValueUpdate. createAddAll(java.util.List<? extends FieldValue> values)
Creates a new value update specifying an addition of all values in a given list to an array.static java.util.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 java.util.List<ValueUpdate>
ValueUpdate. createRemoveAll(java.util.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.java.util.List<ValueUpdate>
FieldUpdate. getValueUpdates()
Get an unmodifiable list of all value updates that this field update specifies.java.util.List<ValueUpdate>
FieldUpdate. getValueUpdates(ValueUpdate.ValueUpdateClassID classID)
Get value updates with the specified valueUpdateClassID.Methods in com.yahoo.document.update with parameters of type ValueUpdate Modifier and Type Method Description FieldUpdate
FieldUpdate. addValueUpdate(int index, ValueUpdate valueUpdate)
Adds a value update to the list of value updates.FieldUpdate
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.ValueUpdate
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 ValueUpdate Modifier and Type Method Description FieldUpdate
FieldUpdate. addValueUpdates(java.util.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 Constructor Description MapValueUpdate(FieldValue value, ValueUpdate update)
-