Class RRFRetrieverEntry
java.lang.Object
co.elastic.clients.elasticsearch._types.RRFRetrieverEntry
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<RRFRetrieverEntry.Kind,Object>
@JsonpDeserializable
public class RRFRetrieverEntry
extends Object
implements TaggedUnion<RRFRetrieverEntry.Kind,Object>, JsonpSerializable
Either a direct RetrieverContainer (backward compatible) or an
RRFRetrieverComponent with weight.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final RRFRetrieverEntry.Kind_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindretriever?booleanIs this variant instance of kindweighted?static RRFRetrieverEntryGet theretrievervariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()weighted()Get theweightedvariant value.
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<RRFRetrieverEntry.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<RRFRetrieverEntry.Kind,Object>
-
of
public static RRFRetrieverEntry of(Function<RRFRetrieverEntry.Builder, ObjectBuilder<RRFRetrieverEntry>> fn) -
isWeighted
public boolean isWeighted()Is this variant instance of kindweighted? -
weighted
Get theweightedvariant value.- Throws:
IllegalStateException- if the current variant is not of theweightedkind.
-
isRetriever
public boolean isRetriever()Is this variant instance of kindretriever? -
retriever
Get theretrievervariant value.- Throws:
IllegalStateException- if the current variant is not of theretrieverkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-