Class Rank
java.lang.Object
co.elastic.clients.elasticsearch._types.Rank
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<Rank.Kind,
Object>
@JsonpDeserializable
public class Rank
extends Object
implements TaggedUnion<Rank.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final Rank.Kind
_kind()
Get the of the kind of variant held by this object.boolean
isRrf()
Is this variant instance of kindrrf
?static Rank
of
(Function<Rank.Builder, ObjectBuilder<Rank>> fn) rrf()
Get therrf
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Rank
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Rank.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Rank.Kind,
Object>
-
of
-
isRrf
public boolean isRrf()Is this variant instance of kindrrf
? -
rrf
Get therrf
variant value.- Throws:
IllegalStateException
- if the current variant is not of therrf
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupRankDeserializer
-