Class Retriever
java.lang.Object
co.elastic.clients.elasticsearch._types.Retriever
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Retriever.Kind,Object>
@JsonpDeserializable
public class Retriever
extends Object
implements TaggedUnion<Retriever.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Retriever.Kind_kind()Get the of the kind of variant held by this object.booleanisKnn()Is this variant instance of kindknn?booleanisLinear()Is this variant instance of kindlinear?booleanisPinned()Is this variant instance of kindpinned?booleanIs this variant instance of kindrescorer?booleanisRrf()Is this variant instance of kindrrf?booleanisRule()Is this variant instance of kindrule?booleanIs this variant instance of kindstandard?booleanIs this variant instance of kindtext_similarity_reranker?knn()Get theknnvariant value.linear()Get thelinearvariant value.static Retrieverpinned()Get thepinnedvariant value.rescorer()Get therescorervariant value.rrf()Get therrfvariant value.rule()Get therulevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidstandard()Get thestandardvariant value.Get thetext_similarity_rerankervariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Retriever
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Retriever.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Retriever.Kind,Object>
-
of
-
isStandard
public boolean isStandard()Is this variant instance of kindstandard? -
standard
Get thestandardvariant value.- Throws:
IllegalStateException- if the current variant is not of thestandardkind.
-
isKnn
public boolean isKnn()Is this variant instance of kindknn? -
knn
Get theknnvariant value.- Throws:
IllegalStateException- if the current variant is not of theknnkind.
-
isRrf
public boolean isRrf()Is this variant instance of kindrrf? -
rrf
Get therrfvariant value.- Throws:
IllegalStateException- if the current variant is not of therrfkind.
-
isTextSimilarityReranker
public boolean isTextSimilarityReranker()Is this variant instance of kindtext_similarity_reranker? -
textSimilarityReranker
Get thetext_similarity_rerankervariant value.- Throws:
IllegalStateException- if the current variant is not of thetext_similarity_rerankerkind.
-
isRule
public boolean isRule()Is this variant instance of kindrule? -
rule
Get therulevariant value.- Throws:
IllegalStateException- if the current variant is not of therulekind.
-
isRescorer
public boolean isRescorer()Is this variant instance of kindrescorer? -
rescorer
Get therescorervariant value.- Throws:
IllegalStateException- if the current variant is not of therescorerkind.
-
isLinear
public boolean isLinear()Is this variant instance of kindlinear? -
linear
Get thelinearvariant value.- Throws:
IllegalStateException- if the current variant is not of thelinearkind.
-
isPinned
public boolean isPinned()Is this variant instance of kindpinned? -
pinned
Get thepinnedvariant value.- Throws:
IllegalStateException- if the current variant is not of thepinnedkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupRetrieverDeserializer
-