Class RemoveFieldPathUpdate
- java.lang.Object
-
- com.yahoo.document.fieldpathupdate.FieldPathUpdate
-
- com.yahoo.document.fieldpathupdate.RemoveFieldPathUpdate
-
public class RemoveFieldPathUpdate extends FieldPathUpdate
RemoveFieldPathUpdate is used to remove fields or portions of fields based on the field path supplied and optionally a where clause. If document type "testdoc" has a field "ivec" which is an array of integers, then the field path and where clause to remove all array elements having the value 5 is "ivec[$x]" and "testdoc.ivec[$x] == 5". If document type "testdoc" has a field "svec" which is an array of struct containing an integer field "ival" then "svec[$x]" and "testdoc.svec[$x].ival == 5" can be used to remove all array elements where ival is 5.- Author:
- Thomas Gundersen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.document.fieldpathupdate.FieldPathUpdate
FieldPathUpdate.Type
-
-
Constructor Summary
Constructors Constructor Description RemoveFieldPathUpdate(DocumentType type, DocumentUpdateReader reader)
RemoveFieldPathUpdate(DocumentType type, java.lang.String fieldPath)
RemoveFieldPathUpdate(DocumentType type, java.lang.String fieldPath, java.lang.String whereClause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
Methods inherited from class com.yahoo.document.fieldpathupdate.FieldPathUpdate
applyTo, create, equals, getDocumentType, getFieldPath, getOriginalFieldPath, getOriginalWhereClause, getUpdateType, getWhereClause, hashCode, serialize, setFieldPath, setWhereClause
-
-
-
-
Constructor Detail
-
RemoveFieldPathUpdate
public RemoveFieldPathUpdate(DocumentType type, java.lang.String fieldPath, java.lang.String whereClause)
-
RemoveFieldPathUpdate
public RemoveFieldPathUpdate(DocumentType type, java.lang.String fieldPath)
-
RemoveFieldPathUpdate
public RemoveFieldPathUpdate(DocumentType type, DocumentUpdateReader reader)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFieldPathUpdate
-
-