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
-
Field Summary
Fields inherited from class com.yahoo.document.DocumentUpdate
CLASSID
-
Constructor Summary
ConstructorDescriptionProxyDocumentUpdate
(com.yahoo.document.DocumentUpdate docUpd, Map<String, String> fieldMap) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.document.DocumentUpdate
addFieldUpdate
(com.yahoo.document.update.FieldUpdate fieldUpdate) com.yahoo.document.DocumentUpdate
applyTo
(com.yahoo.document.Document doc) boolean
Collection<com.yahoo.document.update.FieldUpdate>
com.yahoo.document.DocumentType
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
int
hashCode()
void
serialize
(com.yahoo.document.serialization.DocumentUpdateWriter data) int
size()
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 com.yahoo.document.DocumentOperation
getCondition, setCondition
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ProxyDocumentUpdate
-
-
Method Details
-
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
- Overrides:
getFieldUpdate
in classcom.yahoo.document.DocumentUpdate
-
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
- 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
- Overrides:
toString
in classcom.yahoo.document.DocumentUpdate
-
getWrappedDocumentOperation
public com.yahoo.document.DocumentOperation getWrappedDocumentOperation()- Specified by:
getWrappedDocumentOperation
in interfaceDocumentOperationWrapper
-