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
-
Method Summary
Modifier and TypeMethodDescriptionapplyTo
(FieldValue oldValue) protected void
checkCompatibility
(DataType fieldType) boolean
static com.yahoo.tensor.TensorType
extractSparseDimensions
(com.yahoo.tensor.TensorType type) getValue()
Returns the primary "value" of this update, or null if this kind of update has no valueint
hashCode()
void
serialize
(DocumentUpdateWriter data, DataType superType) void
setValue
(TensorFieldValue value) Sets the value of this.toString()
void
verifyCompatibleType
(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:
checkCompatibility
in classValueUpdate<TensorFieldValue>
-
serialize
- Specified by:
serialize
in classValueUpdate<TensorFieldValue>
-
applyTo
- Specified by:
applyTo
in classValueUpdate<TensorFieldValue>
-
getValue
Description copied from class:ValueUpdate
Returns the primary "value" of this update, or null if this kind of update has no value- Specified by:
getValue
in classValueUpdate<TensorFieldValue>
-
setValue
Description copied from class:ValueUpdate
Sets the value of this. Ignored by update who have no value- Specified by:
setValue
in classValueUpdate<TensorFieldValue>
-
equals
- Overrides:
equals
in classValueUpdate<TensorFieldValue>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classValueUpdate<TensorFieldValue>
-
toString
- Overrides:
toString
in classValueUpdate<TensorFieldValue>
-
extractSparseDimensions
public static com.yahoo.tensor.TensorType extractSparseDimensions(com.yahoo.tensor.TensorType type)
-