Class TermVectorsResponse.TermVector.Token

java.lang.Object
org.elasticsearch.client.core.TermVectorsResponse.TermVector.Token
Enclosing class:
TermVectorsResponse.TermVector

public static final class TermVectorsResponse.TermVector.Token
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    Token​(java.lang.Integer startOffset, java.lang.Integer endOffset, java.lang.Integer position, java.lang.String payload)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    static TermVectorsResponse.TermVector.Token fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    java.lang.Integer getEndOffset()
    Returns the end offset of the token in the document's field
    java.lang.String getPayload()
    Returns the payload of the token or null if the payload doesn't exist
    java.lang.Integer getPosition()
    Returns the position of the token in the document's field
    java.lang.Integer getStartOffset()
    Returns the start offset of the token in the document's field
    int hashCode()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Token

      public Token​(java.lang.Integer startOffset, java.lang.Integer endOffset, java.lang.Integer position, java.lang.String payload)
  • Method Details

    • fromXContent

      public static TermVectorsResponse.TermVector.Token fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)
    • getStartOffset

      public java.lang.Integer getStartOffset()
      Returns the start offset of the token in the document's field
    • getEndOffset

      public java.lang.Integer getEndOffset()
      Returns the end offset of the token in the document's field
    • getPosition

      public java.lang.Integer getPosition()
      Returns the position of the token in the document's field
    • getPayload

      public java.lang.String getPayload()
      Returns the payload of the token or null if the payload doesn't exist
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object