Class SourceConfigParam
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SourceConfigParam
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<SourceConfigParam.Kind,
Object>
@JsonpDeserializable
public class SourceConfigParam
extends Object
implements TaggedUnion<SourceConfigParam.Kind,Object>, JsonpSerializable
Defines how to fetch a source. Fetching can be disabled entirely, or the
source can be filtered. Used as a query parameter along with the
_source_includes
and _source_excludes
parameters.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final SourceConfigParam.Kind
_kind()
Get the of the kind of variant held by this object.fetch()
Get thefetch
variant value.fields()
Get thefields
variant value.boolean
isFetch()
Is this variant instance of kindfetch
?boolean
isFields()
Is this variant instance of kindfields
?static SourceConfigParam
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<SourceConfigParam.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<SourceConfigParam.Kind,
Object>
-
_toJsonString
-
of
public static SourceConfigParam of(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) -
isFields
public boolean isFields()Is this variant instance of kindfields
? -
fields
Get thefields
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefields
kind.
-
isFetch
public boolean isFetch()Is this variant instance of kindfetch
? -
fetch
Get thefetch
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefetch
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-