Package com.yahoo.document.update
Class TensorModifyUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate<TensorFieldValue>
com.yahoo.document.update.TensorModifyUpdate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLists valid operations that can be performed by a TensorModifyUpdate.Nested classes/interfaces inherited from class com.yahoo.document.update.ValueUpdate
ValueUpdate.ValueUpdateClassID -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected TensorModifyUpdate.Operationprotected TensorFieldValueFields inherited from class com.yahoo.document.update.ValueUpdate
valueUpdateClassID -
Constructor Summary
ConstructorsConstructorDescriptionTensorModifyUpdate(TensorModifyUpdate.Operation operation, TensorFieldValue tensor) TensorModifyUpdate(TensorModifyUpdate.Operation operation, TensorFieldValue tensor, boolean createNonExistingCells) -
Method Summary
Modifier and TypeMethodDescriptionapplyTo(FieldValue oldValue) protected voidcheckCompatibility(DataType fieldType) static com.yahoo.tensor.TensorTypeconvertDimensionsToMapped(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).booleanbooleandoublegetValue()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
-
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:ValueUpdateReturns the primary "value" of this update, or null if this kind of update has no value- Specified by:
getValuein classValueUpdate<TensorFieldValue>
-
getCreateNonExistingCells
public boolean getCreateNonExistingCells() -
getDefaultCellValue
public double getDefaultCellValue() -
setValue
Description copied from class:ValueUpdateSets the value of this. Ignored by update who have no value- Specified by:
setValuein classValueUpdate<TensorFieldValue>
-
applyTo
- Specified by:
applyToin classValueUpdate<TensorFieldValue>
-
checkCompatibility
- Specified by:
checkCompatibilityin classValueUpdate<TensorFieldValue>
-
serialize
- Specified by:
serializein classValueUpdate<TensorFieldValue>
-
equals
- Overrides:
equalsin classValueUpdate<TensorFieldValue>
-
hashCode
public int hashCode()- Overrides:
hashCodein classValueUpdate<TensorFieldValue>
-
toString
- Overrides:
toStringin classValueUpdate<TensorFieldValue>
-