Class Latest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Latest.Builder>
co.elastic.clients.elasticsearch.transform.Latest.Builder
- All Implemented Interfaces:
WithJson<Latest.Builder>
,ObjectBuilder<Latest>
- Enclosing class:
- Latest
public static class Latest.Builder extends WithJsonObjectBuilderBase<Latest.Builder> implements ObjectBuilder<Latest>
Builder for
Latest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Latest
build()
Builds aLatest
.protected Latest.Builder
self()
Latest.Builder
sort(java.lang.String value)
Required - Specifies the date field that is used to identify the latest documents.Latest.Builder
uniqueKey(java.lang.String value, java.lang.String... values)
Required - Specifies an array of one or more fields that are used to group the data.Latest.Builder
uniqueKey(java.util.List<java.lang.String> list)
Required - Specifies an array of one or more fields that are used to group the data.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
sort
Required - Specifies the date field that is used to identify the latest documents.API name:
sort
-
uniqueKey
Required - Specifies an array of one or more fields that are used to group the data.API name:
unique_key
Adds all elements of
list
touniqueKey
. -
uniqueKey
Required - Specifies an array of one or more fields that are used to group the data.API name:
unique_key
Adds one or more values to
uniqueKey
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Latest.Builder>
-
build
Builds aLatest
.- Specified by:
build
in interfaceObjectBuilder<Latest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-