Package com.yahoo.document.update
Class ArithmeticValueUpdate
java.lang.Object
com.yahoo.document.update.ValueUpdate<DoubleFieldValue>
com.yahoo.document.update.ArithmeticValueUpdate
Value update representing an arithmetic operation on a numeric data type.
- Author:
- Einar M R Rosenvinge
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLists valid operations that can be performed by an ArithmeticValueUpdate.Nested classes/interfaces inherited from class com.yahoo.document.update.ValueUpdate
ValueUpdate.ValueUpdateClassID -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DoubleFieldValueprotected ArithmeticValueUpdate.OperatorFields inherited from class com.yahoo.document.update.ValueUpdate
valueUpdateClassID -
Constructor Summary
ConstructorsConstructorDescriptionArithmeticValueUpdate(ArithmeticValueUpdate.Operator operator, DoubleFieldValue operand) ArithmeticValueUpdate(ArithmeticValueUpdate.Operator operator, Number operand) -
Method Summary
Modifier and TypeMethodDescriptionapplyTo(FieldValue oldValue) protected voidcheckCompatibility(DataType fieldType) booleanReturns the operand of this arithmetic value update.Returns the operator of this arithmatic value update.getValue()Returns the operandinthashCode()voidserialize(DocumentUpdateWriter data, DataType superType) voidsetValue(DoubleFieldValue value) Sets the operandtoString()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
-
operator
-
operand
-
-
Constructor Details
-
ArithmeticValueUpdate
-
ArithmeticValueUpdate
-
-
Method Details
-
getOperator
Returns the operator of this arithmatic value update.- Returns:
- the operator
- See Also:
-
getOperand
Returns the operand of this arithmetic value update.- Returns:
- the operand
-
getValue
Returns the operand- Specified by:
getValuein classValueUpdate<DoubleFieldValue>
-
setValue
Sets the operand- Specified by:
setValuein classValueUpdate<DoubleFieldValue>
-
applyTo
- Specified by:
applyToin classValueUpdate<DoubleFieldValue>
-
checkCompatibility
- Specified by:
checkCompatibilityin classValueUpdate<DoubleFieldValue>
-
serialize
- Specified by:
serializein classValueUpdate<DoubleFieldValue>
-
equals
- Overrides:
equalsin classValueUpdate<DoubleFieldValue>
-
hashCode
public int hashCode()- Overrides:
hashCodein classValueUpdate<DoubleFieldValue>
-
toString
- Overrides:
toStringin classValueUpdate<DoubleFieldValue>
-