Class Term
java.lang.Object
co.elastic.clients.elasticsearch.core.termvectors.Term
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class Term extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTerm.BuilderBuilder forTerm. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Term>_DESERIALIZERJson deserializer forTerm -
Constructor Summary
Constructors Constructor Description Term(Term.Builder builder)Term(java.util.function.Function<Term.Builder,Term.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.IntegerdocFreq()API name:doc_freqjava.lang.Doublescore()API name:scorevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTermDeserializer(DelegatingDeserializer<Term.Builder> op)inttermFreq()Required - API name:term_freqjava.util.List<Token>tokens()Required - API name:tokensjava.lang.Integerttf()API name:ttfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTerm
-
-
Constructor Details
-
Term
-
Term
-
-
Method Details
-
docFreq
@Nullable public java.lang.Integer docFreq()API name:doc_freq -
score
@Nullable public java.lang.Double score()API name:score -
termFreq
public int termFreq()Required - API name:term_freq -
tokens
Required - API name:tokens -
ttf
@Nullable public java.lang.Integer ttf()API name:ttf -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTermDeserializer
-