Package com.yahoo.document.update
Class TensorModifyUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate<TensorFieldValue>
com.yahoo.document.update.TensorModifyUpdate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Lists valid operations that can be performed by a TensorModifyUpdate.Nested classes/interfaces inherited from class com.yahoo.document.update.ValueUpdate
ValueUpdate.ValueUpdateClassID
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected TensorModifyUpdate.Operation
protected TensorFieldValue
Fields inherited from class com.yahoo.document.update.ValueUpdate
valueUpdateClassID
-
Constructor Summary
ConstructorDescriptionTensorModifyUpdate
(TensorModifyUpdate.Operation operation, TensorFieldValue tensor) TensorModifyUpdate
(TensorModifyUpdate.Operation operation, TensorFieldValue tensor, boolean createNonExistingCells) -
Method Summary
Modifier and TypeMethodDescriptionapplyTo
(FieldValue oldValue) protected void
checkCompatibility
(DataType fieldType) static com.yahoo.tensor.TensorType
convertDimensionsToMapped
(com.yahoo.tensor.TensorType type) Converts the given tensor type to a type that is compatible for being used in this update (has only mapped dimensions).boolean
boolean
double
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()
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
-
Field Details
-
operation
-
tensor
-
createNonExistingCells
protected boolean createNonExistingCells
-
-
Constructor Details
-
TensorModifyUpdate
-
TensorModifyUpdate
public TensorModifyUpdate(TensorModifyUpdate.Operation operation, TensorFieldValue tensor, boolean createNonExistingCells)
-
-
Method Details
-
convertDimensionsToMapped
public static com.yahoo.tensor.TensorType convertDimensionsToMapped(com.yahoo.tensor.TensorType type) Converts the given tensor type to a type that is compatible for being used in this update (has only mapped dimensions). -
getOperation
-
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>
-
getCreateNonExistingCells
public boolean getCreateNonExistingCells() -
getDefaultCellValue
public double getDefaultCellValue() -
setValue
Description copied from class:ValueUpdate
Sets the value of this. Ignored by update who have no value- Specified by:
setValue
in classValueUpdate<TensorFieldValue>
-
applyTo
- Specified by:
applyTo
in classValueUpdate<TensorFieldValue>
-
checkCompatibility
- Specified by:
checkCompatibility
in classValueUpdate<TensorFieldValue>
-
serialize
- Specified by:
serialize
in classValueUpdate<TensorFieldValue>
-
equals
- Overrides:
equals
in classValueUpdate<TensorFieldValue>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classValueUpdate<TensorFieldValue>
-
toString
- Overrides:
toString
in classValueUpdate<TensorFieldValue>
-