Class TermVectorsResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class TermVectorsResponse extends ActionResponse implements org.elasticsearch.xcontent.ToXContentObject
  • Constructor Details

    • TermVectorsResponse

      public TermVectorsResponse(String index, String type, String id)
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getFields

      public org.apache.lucene.index.Fields getFields() throws IOException
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • setTookInMillis

      public void setTookInMillis(long tookInMillis)
    • getTook

      public org.elasticsearch.core.TimeValue getTook()
    • isExists

      public boolean isExists()
    • setExists

      public void setExists(boolean exists)
    • setFields

      public void setFields(org.apache.lucene.index.Fields termVectorsByField, Set<String> selectedFields, EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields) throws IOException
      Throws:
      IOException
    • setFields

      public void setFields(org.apache.lucene.index.Fields termVectorsByField, Set<String> selectedFields, EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields, TermVectorsFilter termVectorsFilter) throws IOException
      Throws:
      IOException
    • setTermVectorsField

      public void setTermVectorsField(BytesStreamOutput output)
    • setHeader

      public void setHeader(BytesReference header)
    • setDocVersion

      public void setDocVersion(long version)
    • getVersion

      public Long getVersion()
    • getIndex

      public String getIndex()
    • getType

      public String getType()
    • getId

      public String getId()
    • isArtificial

      public boolean isArtificial()
    • setArtificial

      public void setArtificial(boolean artificial)