Class DocumentState

java.lang.Object
com.yahoo.documentapi.messagebus.protocol.DocumentState
All Implemented Interfaces:
Comparable<DocumentState>

public class DocumentState extends Object implements Comparable<DocumentState>
Author:
Einar M R Rosenvinge
  • Constructor Details

    • DocumentState

      public DocumentState(com.yahoo.document.DocumentId docId, long timestamp, boolean removeEntry)
    • DocumentState

      public DocumentState(com.yahoo.document.GlobalId gid, long timestamp, boolean removeEntry)
    • DocumentState

      public DocumentState(com.yahoo.vespa.objects.Deserializer buf)
  • Method Details

    • getDocId

      public com.yahoo.document.DocumentId getDocId()
    • getGid

      public com.yahoo.document.GlobalId getGid()
    • getTimestamp

      public long getTimestamp()
    • isRemoveEntry

      public boolean isRemoveEntry()
    • serialize

      public void serialize(com.yahoo.vespa.objects.Serializer buf)
    • getSerializedSize

      public int getSerializedSize()
    • compareTo

      public int compareTo(DocumentState state)
      Specified by:
      compareTo in interface Comparable<DocumentState>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object