Class RuntimeField.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RuntimeField.Builder>
co.elastic.clients.elasticsearch._types.mapping.RuntimeField.Builder
- All Implemented Interfaces:
WithJson<RuntimeField.Builder>
,ObjectBuilder<RuntimeField>
- Enclosing class:
- RuntimeField
public static class RuntimeField.Builder
extends WithJsonObjectBuilderBase<RuntimeField.Builder>
implements ObjectBuilder<RuntimeField>
Builder for
RuntimeField
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aRuntimeField
.final RuntimeField.Builder
fetchFields
(RuntimeFieldFetchFields value, RuntimeFieldFetchFields... values) For typelookup
final RuntimeField.Builder
For typelookup
final RuntimeField.Builder
For typelookup
final RuntimeField.Builder
A custom format fordate
type runtime fields.final RuntimeField.Builder
inputField
(String value) For typelookup
final RuntimeField.Builder
Painless script executed at query time.final RuntimeField.Builder
Painless script executed at query time.protected RuntimeField.Builder
self()
final RuntimeField.Builder
targetField
(String value) For typelookup
final RuntimeField.Builder
targetIndex
(String value) For typelookup
final RuntimeField.Builder
type
(RuntimeFieldType value) Required - Field type, which can be:boolean
,composite
,date
,double
,geo_point
,ip
,keyword
,long
, orlookup
.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fetchFields
For typelookup
API name:
fetch_fields
Adds all elements of
list
tofetchFields
. -
fetchFields
public final RuntimeField.Builder fetchFields(RuntimeFieldFetchFields value, RuntimeFieldFetchFields... values) For typelookup
API name:
fetch_fields
Adds one or more values to
fetchFields
. -
fetchFields
public final RuntimeField.Builder fetchFields(Function<RuntimeFieldFetchFields.Builder, ObjectBuilder<RuntimeFieldFetchFields>> fn) For typelookup
API name:
fetch_fields
Adds a value to
fetchFields
using a builder lambda. -
format
A custom format fordate
type runtime fields.API name:
format
-
inputField
For typelookup
API name:
input_field
-
targetField
For typelookup
API name:
target_field
-
targetIndex
For typelookup
API name:
target_index
-
script
Painless script executed at query time.API name:
script
-
script
Painless script executed at query time.API name:
script
-
type
Required - Field type, which can be:boolean
,composite
,date
,double
,geo_point
,ip
,keyword
,long
, orlookup
.API name:
type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<RuntimeField.Builder>
-
build
Builds aRuntimeField
.- Specified by:
build
in interfaceObjectBuilder<RuntimeField>
- Throws:
NullPointerException
- if some of the required fields are null.
-