Class ProxyDocumentUpdate

  • All Implemented Interfaces:
    DocumentOperationWrapper, java.lang.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

      Constructors 
      Constructor Description
      ProxyDocumentUpdate​(com.yahoo.document.DocumentUpdate docUpd, java.util.Map<java.lang.String,​java.lang.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​(java.lang.Object o)  
      java.util.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​(java.lang.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()  
      java.lang.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 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 Detail

      • ProxyDocumentUpdate

        public ProxyDocumentUpdate​(com.yahoo.document.DocumentUpdate docUpd,
                                   java.util.Map<java.lang.String,​java.lang.String> fieldMap)
    • Method Detail

      • getDocumentType

        public com.yahoo.document.DocumentType getDocumentType()
        Overrides:
        getDocumentType in class com.yahoo.document.DocumentUpdate
      • getFieldUpdate

        public com.yahoo.document.update.FieldUpdate getFieldUpdate​(com.yahoo.document.Field field)
        Overrides:
        getFieldUpdate in class com.yahoo.document.DocumentUpdate
      • getFieldUpdate

        public com.yahoo.document.update.FieldUpdate getFieldUpdate​(java.lang.String fieldName)
        Overrides:
        getFieldUpdate in class com.yahoo.document.DocumentUpdate
      • fieldUpdates

        public java.util.Collection<com.yahoo.document.update.FieldUpdate> fieldUpdates()
        Overrides:
        fieldUpdates in class com.yahoo.document.DocumentUpdate
      • getId

        public com.yahoo.document.DocumentId getId()
        Overrides:
        getId in class com.yahoo.document.DocumentUpdate
      • getType

        public com.yahoo.document.DocumentType getType()
        Overrides:
        getType in class com.yahoo.document.DocumentUpdate
      • addFieldUpdate

        public com.yahoo.document.DocumentUpdate addFieldUpdate​(com.yahoo.document.update.FieldUpdate fieldUpdate)
        Overrides:
        addFieldUpdate in class com.yahoo.document.DocumentUpdate
      • applyTo

        public com.yahoo.document.DocumentUpdate applyTo​(com.yahoo.document.Document doc)
        Overrides:
        applyTo in class com.yahoo.document.DocumentUpdate
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.yahoo.document.DocumentUpdate
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.yahoo.document.DocumentUpdate
      • serialize

        public void serialize​(com.yahoo.document.serialization.DocumentUpdateWriter data)
        Overrides:
        serialize in class com.yahoo.document.DocumentUpdate
      • size

        public int size()
        Overrides:
        size in class com.yahoo.document.DocumentUpdate
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class com.yahoo.document.DocumentUpdate