Class PinnedQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.PinnedQuery
- All Implemented Interfaces:
QueryVariant,JsonpSerializable,TaggedUnion<PinnedQuery.Kind,Object>
@JsonpDeserializable
public class PinnedQuery
extends QueryBase
implements TaggedUnion<PinnedQuery.Kind,Object>, QueryVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final PinnedQuery.Kind_kind()Get the of the kind of variant held by this object.Query variant kind.docs()Get thedocsvariant value.ids()Get theidsvariant value.booleanisDocs()Is this variant instance of kinddocs?booleanisIds()Is this variant instance of kindids?static PinnedQueryfinal Queryorganic()Required - API name:organicvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected static voidtoString()Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serializeInternal, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<PinnedQuery.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<PinnedQuery.Kind,Object>
-
of
-
organic
Required - API name:organic -
isIds
public boolean isIds()Is this variant instance of kindids? -
ids
Get theidsvariant value.- Throws:
IllegalStateException- if the current variant is not of theidskind.
-
isDocs
public boolean isDocs()Is this variant instance of kinddocs? -
docs
Get thedocsvariant value.- Throws:
IllegalStateException- if the current variant is not of thedocskind.
-
serialize
Description copied from class:QueryBaseSerialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable- Overrides:
serializein classQueryBase
-
toString
-
setupPinnedQueryDeserializer
-