Class DocumentState
- java.lang.Object
-
- com.yahoo.documentapi.messagebus.protocol.DocumentState
-
- All Implemented Interfaces:
java.lang.Comparable<DocumentState>
public class DocumentState extends java.lang.Object implements java.lang.Comparable<DocumentState>
- Author:
- Einar M R Rosenvinge
-
-
Constructor Summary
Constructors Constructor Description DocumentState(com.yahoo.document.DocumentId docId, long timestamp, boolean removeEntry)
DocumentState(com.yahoo.document.GlobalId gid, long timestamp, boolean removeEntry)
DocumentState(com.yahoo.vespa.objects.Deserializer buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DocumentState state)
boolean
equals(java.lang.Object o)
com.yahoo.document.DocumentId
getDocId()
com.yahoo.document.GlobalId
getGid()
int
getSerializedSize()
long
getTimestamp()
int
hashCode()
boolean
isRemoveEntry()
void
serialize(com.yahoo.vespa.objects.Serializer buf)
java.lang.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
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 interfacejava.lang.Comparable<DocumentState>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-