Package com.yahoo.document.update
Class TensorRemoveUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate<TensorFieldValue>
com.yahoo.document.update.TensorRemoveUpdate
An update used to remove cells from a sparse tensor or dense sub-spaces from a mixed tensor.
The specification of which cells to remove contains addresses using a subset or all of the sparse dimensions of the tensor type.
This is represented as a sparse tensor where cell values are set to 1.0.
-
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) booleanstatic com.yahoo.tensor.TensorTypeextractSparseDimensions(com.yahoo.tensor.TensorType type) getValue()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()voidverifyCompatibleType(com.yahoo.tensor.TensorType originalType) 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
-
TensorRemoveUpdate
-
-
Method Details
-
verifyCompatibleType
public void verifyCompatibleType(com.yahoo.tensor.TensorType originalType) -
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>
-
extractSparseDimensions
public static com.yahoo.tensor.TensorType extractSparseDimensions(com.yahoo.tensor.TensorType type)
-