Package com.yahoo.docproc.proxy
Class ProxyDocumentUpdate
- java.lang.Object
-
- com.yahoo.document.DocumentOperation
-
- com.yahoo.document.DocumentUpdate
-
- com.yahoo.docproc.proxy.ProxyDocumentUpdate
-
- All Implemented Interfaces:
DocumentOperationWrapper
,Iterable<com.yahoo.document.fieldpathupdate.FieldPathUpdate>
public class ProxyDocumentUpdate extends com.yahoo.document.DocumentUpdate implements DocumentOperationWrapper
Schema mapped facade to a DocumentUpdate- Author:
- vegardh
-
-
Constructor Summary
Constructors Constructor Description ProxyDocumentUpdate(com.yahoo.document.DocumentUpdate docUpd, Map<String,String> fieldMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yahoo.document.DocumentUpdate
addFieldUpdate(com.yahoo.document.update.FieldUpdate fieldUpdate)
com.yahoo.document.DocumentUpdate
applyTo(com.yahoo.document.Document doc)
boolean
equals(Object o)
Collection<com.yahoo.document.update.FieldUpdate>
fieldUpdates()
com.yahoo.document.DocumentType
getDocumentType()
com.yahoo.document.update.FieldUpdate
getFieldUpdate(com.yahoo.document.Field field)
com.yahoo.document.update.FieldUpdate
getFieldUpdate(String fieldName)
com.yahoo.document.DocumentId
getId()
com.yahoo.document.DocumentType
getType()
com.yahoo.document.DocumentOperation
getWrappedDocumentOperation()
int
hashCode()
void
serialize(com.yahoo.document.serialization.DocumentUpdateWriter data)
int
size()
String
toString()
-
Methods inherited from class com.yahoo.document.DocumentUpdate
addAll, addFieldPathUpdate, addFieldUpdates, clearFieldUpdates, fieldPathUpdates, getCreateIfNonExistent, getOptionalCreateIfNonExistent, isEmpty, iterator, prune, removeFieldUpdate, removeFieldUpdate, serialize, setCreateIfNonExistent, setDocumentType, setFieldUpdates, setFieldUpdates, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getDocumentType
public com.yahoo.document.DocumentType getDocumentType()
- Overrides:
getDocumentType
in classcom.yahoo.document.DocumentUpdate
-
getFieldUpdate
public com.yahoo.document.update.FieldUpdate getFieldUpdate(com.yahoo.document.Field field)
- Overrides:
getFieldUpdate
in classcom.yahoo.document.DocumentUpdate
-
getFieldUpdate
public com.yahoo.document.update.FieldUpdate getFieldUpdate(String fieldName)
- Overrides:
getFieldUpdate
in classcom.yahoo.document.DocumentUpdate
-
fieldUpdates
public Collection<com.yahoo.document.update.FieldUpdate> fieldUpdates()
- Overrides:
fieldUpdates
in classcom.yahoo.document.DocumentUpdate
-
getId
public com.yahoo.document.DocumentId getId()
- Overrides:
getId
in classcom.yahoo.document.DocumentUpdate
-
getType
public com.yahoo.document.DocumentType getType()
- Overrides:
getType
in classcom.yahoo.document.DocumentUpdate
-
addFieldUpdate
public com.yahoo.document.DocumentUpdate addFieldUpdate(com.yahoo.document.update.FieldUpdate fieldUpdate)
- Overrides:
addFieldUpdate
in classcom.yahoo.document.DocumentUpdate
-
applyTo
public com.yahoo.document.DocumentUpdate applyTo(com.yahoo.document.Document doc)
- Overrides:
applyTo
in classcom.yahoo.document.DocumentUpdate
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.yahoo.document.DocumentUpdate
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.yahoo.document.DocumentUpdate
-
serialize
public void serialize(com.yahoo.document.serialization.DocumentUpdateWriter data)
- Overrides:
serialize
in classcom.yahoo.document.DocumentUpdate
-
size
public int size()
- Overrides:
size
in classcom.yahoo.document.DocumentUpdate
-
toString
public String toString()
- Overrides:
toString
in classcom.yahoo.document.DocumentUpdate
-
getWrappedDocumentOperation
public com.yahoo.document.DocumentOperation getWrappedDocumentOperation()
- Specified by:
getWrappedDocumentOperation
in interfaceDocumentOperationWrapper
-
-