Class Source.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Source.Builder>
co.elastic.clients.elasticsearch.core.reindex.Source.Builder
- All Implemented Interfaces:
WithJson<Source.Builder>,ObjectBuilder<Source>
- Enclosing class:
- Source
public static class Source.Builder
extends WithJsonObjectBuilderBase<Source.Builder>
implements ObjectBuilder<Source>
Builder for
Source.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSource.final Source.BuilderRequired - API name:indexfinal Source.BuilderRequired - API name:indexfinal Source.BuilderAPI name:queryfinal Source.BuilderAPI name:queryfinal Source.Builderremote(RemoteSource value) API name:remotefinal Source.BuilderAPI name:remotefinal Source.BuilderruntimeMappings(String key, RuntimeField value) API name:runtime_mappingsfinal Source.BuilderAPI name:runtime_mappingsfinal Source.BuilderruntimeMappings(Map<String, RuntimeField> map) API name:runtime_mappingsprotected Source.Builderself()final Source.BuilderAPI name:sizefinal Source.Builderslice(SlicedScroll value) API name:slicefinal Source.BuilderAPI name:slicefinal Source.Buildersort(SortOptions value, SortOptions... values) API name:sortfinal Source.BuilderAPI name:sortfinal Source.Buildersort(List<SortOptions> list) API name:sortfinal Source.BuildersourceFields(String value, String... values) API name:_sourcefinal Source.BuildersourceFields(List<String> list) API name:_sourceMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - API name:indexAdds all elements of
listtoindex. -
index
Required - API name:indexAdds one or more values to
index. -
query
API name:query -
query
API name:query -
remote
API name:remote -
remote
API name:remote -
size
API name:size -
slice
API name:slice -
slice
API name:slice -
sort
API name:sortAdds all elements of
listtosort. -
sort
API name:sortAdds one or more values to
sort. -
sort
API name:sortAdds a value to
sortusing a builder lambda. -
sourceFields
API name:_sourceAdds all elements of
listtosourceFields. -
sourceFields
API name:_sourceAdds one or more values to
sourceFields. -
runtimeMappings
API name:runtime_mappingsAdds all entries of
maptoruntimeMappings. -
runtimeMappings
API name:runtime_mappingsAdds an entry to
runtimeMappings. -
runtimeMappings
public final Source.Builder runtimeMappings(String key, Function<RuntimeField.Builder, ObjectBuilder<RuntimeField>> fn) API name:runtime_mappingsAdds an entry to
runtimeMappingsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Source.Builder>
-
build
Builds aSource.- Specified by:
buildin interfaceObjectBuilder<Source>- Throws:
NullPointerException- if some of the required fields are null.
-