Package com.yahoo.document.update
Class RemoveValueUpdate
- java.lang.Object
-
- com.yahoo.document.update.ValueUpdate
-
- com.yahoo.document.update.RemoveValueUpdate
-
public class RemoveValueUpdate extends ValueUpdate
Value update representing a removal of a value (and its associated weight, if any) from a multi-valued data type.
Deprecated: Use RemoveFieldPathUpdate instead.- Author:
- Einar M R Rosenvinge
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.document.update.ValueUpdate
ValueUpdate.ValueUpdateClassID
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldValue
value
-
Fields inherited from class com.yahoo.document.update.ValueUpdate
valueUpdateClassID
-
-
Constructor Summary
Constructors Constructor Description RemoveValueUpdate(FieldValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldValue
applyTo(FieldValue fval)
protected void
checkCompatibility(DataType fieldType)
boolean
equals(java.lang.Object o)
FieldValue
getValue()
Sets the key this should removeint
hashCode()
void
serialize(DocumentUpdateWriter data, DataType superType)
void
setValue(FieldValue value)
Sets the value of this.java.lang.String
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 Detail
-
value
protected FieldValue value
-
-
Constructor Detail
-
RemoveValueUpdate
public RemoveValueUpdate(FieldValue value)
-
-
Method Detail
-
getValue
public FieldValue getValue()
Sets the key this should remove- Specified by:
getValue
in classValueUpdate
-
setValue
public void setValue(FieldValue value)
Description copied from class:ValueUpdate
Sets the value of this. Ignored by update who have no value- Specified by:
setValue
in classValueUpdate
-
applyTo
public FieldValue applyTo(FieldValue fval)
- Specified by:
applyTo
in classValueUpdate
-
checkCompatibility
protected void checkCompatibility(DataType fieldType)
- Specified by:
checkCompatibility
in classValueUpdate
-
serialize
public void serialize(DocumentUpdateWriter data, DataType superType)
- Specified by:
serialize
in classValueUpdate
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classValueUpdate
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classValueUpdate
-
toString
public java.lang.String toString()
- Overrides:
toString
in classValueUpdate
-
-