Class Source.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.reindex.Source.Builder
- All Implemented Interfaces:
ObjectBuilder<Source>
- Enclosing class:
- Source
public static class Source.Builder extends ObjectBuilderBase implements ObjectBuilder<Source>
Builder for
Source
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Source
build()
Builds aSource
.Source.Builder
index(java.lang.String value, java.lang.String... values)
Required - API name:index
Source.Builder
index(java.util.List<java.lang.String> list)
Required - API name:index
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, RuntimeField value)
API name:runtime_mappings
Source.Builder
runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)
API name:runtime_mappings
Source.Builder
runtimeMappings(java.util.Map<java.lang.String,RuntimeField> map)
API name:runtime_mappings
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(SortOptions value, SortOptions... values)
API name:sort
Source.Builder
sort(java.util.function.Function<SortOptions.Builder,ObjectBuilder<SortOptions>> fn)
API name:sort
Source.Builder
sort(java.util.List<SortOptions> list)
API name:sort
Source.Builder
sourceFields(java.lang.String value, java.lang.String... values)
API name:_source
Source.Builder
sourceFields(java.util.List<java.lang.String> list)
API name:_source
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
Adds all elements of
list
toindex
. -
index
Required - API name:index
Adds one or more values to
index
. -
query
API name:query
-
query
public final Source.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:query
-
remote
API name:remote
-
remote
public final 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 final Source.Builder slice(java.util.function.Function<SlicedScroll.Builder,ObjectBuilder<SlicedScroll>> fn)API name:slice
-
sort
API name:sort
Adds all elements of
list
tosort
. -
sort
API name:sort
Adds one or more values to
sort
. -
sort
public final Source.Builder sort(java.util.function.Function<SortOptions.Builder,ObjectBuilder<SortOptions>> fn)API name:sort
Adds a value to
sort
using a builder lambda. -
sourceFields
API name:_source
Adds all elements of
list
tosourceFields
. -
sourceFields
API name:_source
Adds one or more values to
sourceFields
. -
runtimeMappings
API name:runtime_mappings
Adds all entries of
map
toruntimeMappings
. -
runtimeMappings
API name:runtime_mappings
Adds an entry to
runtimeMappings
. -
runtimeMappings
public final Source.Builder runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)API name:runtime_mappings
Adds an entry to
runtimeMappings
using a builder lambda. -
build
Builds aSource
.- Specified by:
build
in interfaceObjectBuilder<Source>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-