Class GetDocumentMessage


  • public class GetDocumentMessage
    extends DocumentMessage
    Author:
    Simon Thoresen Hult
    • 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,
                                  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 String getFieldSet()
      • getType

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