Package com.yahoo.document.update
Class TensorAddUpdate
An update used to add cells to a sparse or mixed tensor (has at least one mapped dimension).
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyTo(FieldValue oldValue) protected voidcheckCompatibility(DataType fieldType) booleangetValue()Returns the primary "value" of this update, or null if this kind of update has no valueinthashCode()voidserialize(DocumentUpdateWriter data, DataType superType) voidsetValue(TensorFieldValue value) Sets the value of this.toString()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
-
Constructor Details
-
TensorAddUpdate
-
-
Method Details
-
checkCompatibility
- Specified by:
checkCompatibilityin classValueUpdate<TensorFieldValue>
-
serialize
- Specified by:
serializein classValueUpdate<TensorFieldValue>
-
applyTo
- Specified by:
applyToin classValueUpdate<TensorFieldValue>
-
getValue
Description copied from class:ValueUpdateReturns the primary "value" of this update, or null if this kind of update has no value- Specified by:
getValuein classValueUpdate<TensorFieldValue>
-
setValue
Description copied from class:ValueUpdateSets the value of this. Ignored by update who have no value- Specified by:
setValuein classValueUpdate<TensorFieldValue>
-
equals
- Overrides:
equalsin classValueUpdate<TensorFieldValue>
-
hashCode
public int hashCode()- Overrides:
hashCodein classValueUpdate<TensorFieldValue>
-
toString
- Overrides:
toStringin classValueUpdate<TensorFieldValue>
-