Class GetDocumentMessage


  • public class GetDocumentMessage
    extends DocumentMessage
    Author:
    Simon Thoresen Hult
    • Constructor Summary

      Constructors 
      Constructor Description
      GetDocumentMessage​(com.yahoo.document.DocumentId documentId)
      Constructs a new document get message.
      GetDocumentMessage​(com.yahoo.document.DocumentId documentId, java.lang.String fieldSet)
      Constructs a new document get message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DocumentReply createReply()
      Creates and returns a reply to this message.
      int getApproxSize()  
      com.yahoo.document.DocumentId getDocumentId()
      Returns the identifier of the document to retrieve.
      java.lang.String getFieldSet()  
      int getType()  
      void setDocumentId​(com.yahoo.document.DocumentId documentId)
      Sets the identifier of the document to retrieve.
      • Methods inherited from class com.yahoo.messagebus.Message

        getBucketSequence, getRetry, getRetryEnabled, getRoute, getSequenceId, getTimeReceived, getTimeRemaining, getTimeRemainingNow, hasBucketSequence, hasSequenceId, isExpired, setRetry, setRetryEnabled, setRoute, setTimeReceived, setTimeReceivedNow, setTimeRemaining
      • Methods inherited from class com.yahoo.messagebus.Routable

        discard, getCallStack, getContext, getTrace, popHandler, pushHandler, setContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GetDocumentMessage

        public GetDocumentMessage​(com.yahoo.document.DocumentId documentId)
        Constructs a new document get message.
        Parameters:
        documentId - The identifier of the document to get.
      • GetDocumentMessage

        public GetDocumentMessage​(com.yahoo.document.DocumentId documentId,
                                  java.lang.String fieldSet)
        Constructs a new document get message.
        Parameters:
        documentId - The identifier of the document to get.
        fieldSet - Which fields to retrieve from the document
    • Method Detail

      • getDocumentId

        public com.yahoo.document.DocumentId getDocumentId()
        Returns the identifier of the document to retrieve.
        Returns:
        The document id.
      • setDocumentId

        public void setDocumentId​(com.yahoo.document.DocumentId documentId)
        Sets the identifier of the document to retrieve.
        Parameters:
        documentId - The document id to set.
      • getFieldSet

        public java.lang.String getFieldSet()
      • getType

        public int getType()
        Specified by:
        getType in class com.yahoo.messagebus.Routable