类 TermVectorsResponse.TermVector.Term
java.lang.Object
org.easysearch.client.core.TermVectorsResponse.TermVector.Term
public static final class TermVectorsResponse.TermVector.Term
extends java.lang.Object
-
构造器概要
构造器 构造器 说明 Term(java.lang.String term, int termFreq, java.lang.Integer docFreq, java.lang.Long totalTermFreq, java.lang.Float score, java.util.List<TermVectorsResponse.TermVector.Token> tokens) -
方法概要
修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)static TermVectorsResponse.TermVector.TermfromXContent(org.easysearch.common.xcontent.XContentParser parser, java.lang.String term)java.lang.IntegergetDocFreq()Returns document frequency - the number of documents in the index that contain this termjava.lang.FloatgetScore()Returns tf-idf score, if the request used some form of terms filteringjava.lang.StringgetTerm()Returns the string representation of the termintgetTermFreq()Returns term frequency - the number of times this term occurs in the current documentjava.util.List<TermVectorsResponse.TermVector.Token>getTokens()Returns a list of tokens for the termjava.lang.LonggetTotalTermFreq()Returns total term frequency - the number of times this term occurs across all documentsinthashCode()从类继承的方法 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
Term
public Term(java.lang.String term, int termFreq, java.lang.Integer docFreq, java.lang.Long totalTermFreq, java.lang.Float score, java.util.List<TermVectorsResponse.TermVector.Token> tokens)
-
-
方法详细资料
-
fromXContent
public static TermVectorsResponse.TermVector.Term fromXContent(org.easysearch.common.xcontent.XContentParser parser, java.lang.String term) -
getTerm
public java.lang.String getTerm()Returns the string representation of the term -
getTermFreq
public int getTermFreq()Returns term frequency - the number of times this term occurs in the current document -
getDocFreq
public java.lang.Integer getDocFreq()Returns document frequency - the number of documents in the index that contain this term -
getTotalTermFreq
public java.lang.Long getTotalTermFreq()Returns total term frequency - the number of times this term occurs across all documents -
getScore
public java.lang.Float getScore()Returns tf-idf score, if the request used some form of terms filtering -
getTokens
Returns a list of tokens for the term -
equals
public boolean equals(java.lang.Object obj)- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中java.lang.Object
-