Class SortProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<SortProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.SortProcessor.Builder
- All Implemented Interfaces:
WithJson<SortProcessor.Builder>,ObjectBuilder<SortProcessor>
- Enclosing class:
- SortProcessor
public static class SortProcessor.Builder
extends ProcessorBase.AbstractBuilder<SortProcessor.Builder>
implements ObjectBuilder<SortProcessor>
Builder for
SortProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSortProcessor.final SortProcessor.BuilderRequired - The field to be sorted.final SortProcessor.BuilderThe sort order to use.protected SortProcessor.Builderself()final SortProcessor.BuildertargetField(String value) The field to assign the sorted value to.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods 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
-
field
Required - The field to be sorted.API name:
field -
order
The sort order to use. Accepts"asc"or"desc".API name:
order -
targetField
The field to assign the sorted value to. By default, the field is updated in-place.API name:
target_field -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<SortProcessor.Builder>
-
build
Builds aSortProcessor.- Specified by:
buildin interfaceObjectBuilder<SortProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-