Module io.ebean.api

Class RawDoc


public class RawDoc extends Object
Raw document.
  • Constructor Details

    • RawDoc

      public RawDoc(Map<String,Object> source, String id, double score, String index, String type)
      Construct the document with all the meta data.
    • RawDoc

      public RawDoc()
      Construct empty (typically for JSON marshalling).
  • Method Details

    • getSource

      public Map<String,Object> getSource()
      Return the source document as a Map.
    • getId

      public String getId()
      Return the Id value.
    • getScore

      public double getScore()
      Return the score.
    • getIndex

      public String getIndex()
      Return the index name.
    • getType

      public String getType()
      Return the index type.
    • setSource

      public void setSource(Map<String,Object> source)
      Set the source document.
    • setId

      public void setId(String id)
      Set the id value.
    • setScore

      public void setScore(double score)
      Set the score.
    • setIndex

      public void setIndex(String index)
      Set the index name.
    • setType

      public void setType(String type)
      Set the index type.