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

    Constructors
    Constructor
    Description
    ProxyDocumentUpdate(com.yahoo.document.DocumentUpdate docUpd, Map<String,String> fieldMap)
     
  • Method Summary

    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
     
    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
     
    com.yahoo.document.DocumentId
     
    com.yahoo.document.DocumentType
     
    com.yahoo.document.DocumentOperation
     
    int
     
    void
    serialize(com.yahoo.document.serialization.DocumentUpdateWriter data)
     
    int
     
     

    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

      public ProxyDocumentUpdate(com.yahoo.document.DocumentUpdate docUpd, Map<String,String> fieldMap)
  • Method Details

    • 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
    • getWrappedDocumentOperation

      public com.yahoo.document.DocumentOperation getWrappedDocumentOperation()
      Specified by:
      getWrappedDocumentOperation in interface DocumentOperationWrapper