Class Source.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.reindex.Source.Builder
- All Implemented Interfaces:
ObjectBuilder<Source>
- Enclosing class:
- Source
public static class Source.Builder extends java.lang.Object implements ObjectBuilder<Source>
Builder for
Source
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Source.Builder
addIndex(java.lang.String value)
Add a value toindex(List)
, creating the list if needed.Source.Builder
addSort(jakarta.json.JsonValue value)
Add a value tosort(List)
, creating the list if needed.Source.Builder
addSourceFields(java.lang.String value)
Add a value tosourceFields(List)
, creating the list if needed.Source
build()
Builds aSource
.Source.Builder
index(java.lang.String... value)
Required - API name:index
Source.Builder
index(java.util.List<java.lang.String> value)
Required - API name:index
Source.Builder
putRuntimeMappings(java.lang.String key, SourceRuntimeMapping value)
Add a key/value toruntimeMappings(Map)
, creating the map if needed.Source.Builder
putRuntimeMappings(java.lang.String key, java.util.function.Function<SourceRuntimeMapping.Builder,ObjectBuilder<SourceRuntimeMapping>> fn)
Add a key/value toruntimeMappings(Map)
, creating the map if needed.Source.Builder
query(Query value)
API name:query
Source.Builder
query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
API name:query
Source.Builder
remote(RemoteSource value)
API name:remote
Source.Builder
remote(java.util.function.Function<RemoteSource.Builder,ObjectBuilder<RemoteSource>> fn)
API name:remote
Source.Builder
runtimeMappings(java.lang.String key, java.util.function.Function<SourceRuntimeMapping.Builder,ObjectBuilder<SourceRuntimeMapping>> fn)
SetruntimeMappings(Map)
to a singleton map.Source.Builder
runtimeMappings(java.util.Map<java.lang.String,SourceRuntimeMapping> value)
Definitions of search-time runtime fields that can be used by the transform.Source.Builder
size(java.lang.Integer value)
API name:size
Source.Builder
slice(SlicedScroll value)
API name:slice
Source.Builder
slice(java.util.function.Function<SlicedScroll.Builder,ObjectBuilder<SlicedScroll>> fn)
API name:slice
Source.Builder
sort(jakarta.json.JsonValue... value)
API name:sort
Source.Builder
sort(java.util.List<jakarta.json.JsonValue> value)
API name:sort
Source.Builder
sourceFields(java.lang.String... value)
API name:_source
Source.Builder
sourceFields(java.util.List<java.lang.String> value)
API name:_source
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - API name:index
-
index
Required - API name:index
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
query
API name:query
-
query
API name:query
-
remote
API name:remote
-
remote
public Source.Builder remote(java.util.function.Function<RemoteSource.Builder,ObjectBuilder<RemoteSource>> fn)API name:remote
-
size
API name:size
-
slice
API name:slice
-
slice
public Source.Builder slice(java.util.function.Function<SlicedScroll.Builder,ObjectBuilder<SlicedScroll>> fn)API name:slice
-
sort
API name:sort
-
sort
API name:sort
-
addSort
Add a value tosort(List)
, creating the list if needed. -
sourceFields
API name:_source
-
sourceFields
API name:_source
-
addSourceFields
Add a value tosourceFields(List)
, creating the list if needed. -
runtimeMappings
public Source.Builder runtimeMappings(@Nullable java.util.Map<java.lang.String,SourceRuntimeMapping> value)Definitions of search-time runtime fields that can be used by the transform. For search runtime fields all data nodes, including remote nodes, must be 7.12 or later.API name:
runtime_mappings
-
putRuntimeMappings
Add a key/value toruntimeMappings(Map)
, creating the map if needed. -
runtimeMappings
public Source.Builder runtimeMappings(java.lang.String key, java.util.function.Function<SourceRuntimeMapping.Builder,ObjectBuilder<SourceRuntimeMapping>> fn)SetruntimeMappings(Map)
to a singleton map. -
putRuntimeMappings
public Source.Builder putRuntimeMappings(java.lang.String key, java.util.function.Function<SourceRuntimeMapping.Builder,ObjectBuilder<SourceRuntimeMapping>> fn)Add a key/value toruntimeMappings(Map)
, creating the map if needed. -
build
Builds aSource
.- Specified by:
build
in interfaceObjectBuilder<Source>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-