Class 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
    • 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 com.yahoo.document.DocumentOperation

        getCondition, setCondition
    • Constructor Detail

      • ProxyDocumentUpdate

        public ProxyDocumentUpdate​(com.yahoo.document.DocumentUpdate docUpd,
                                   Map<String,​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​(String fieldName)
        Overrides:
        getFieldUpdate in class com.yahoo.document.DocumentUpdate
      • fieldUpdates

        public 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​(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 String toString()
        Overrides:
        toString in class com.yahoo.document.DocumentUpdate