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?booleanisRrf()Is this variant instance of kindrrf?booleanIs this variant instance of kindstandard?knn()Get theknnvariant value.static Retrieverrrf()Get therrfvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidstandard()Get thestandardvariant 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.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupRetrieverDeserializer
-