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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRuntimeField.final RuntimeField.BuilderfetchFields(RuntimeFieldFetchFields value, RuntimeFieldFetchFields... values) For typelookupfinal RuntimeField.BuilderFor typelookupfinal RuntimeField.BuilderFor typelookupfinal RuntimeField.BuilderA custom format fordatetype runtime fields.final RuntimeField.BuilderinputField(String value) For typelookupfinal RuntimeField.BuilderPainless script executed at query time.final RuntimeField.BuilderPainless script executed at query time.protected RuntimeField.Builderself()final RuntimeField.BuildertargetField(String value) For typelookupfinal RuntimeField.BuildertargetIndex(String value) For typelookupfinal RuntimeField.Buildertype(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
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fetchFields
For typelookupAPI name:
fetch_fieldsAdds all elements of
listtofetchFields. -
fetchFields
public final RuntimeField.Builder fetchFields(RuntimeFieldFetchFields value, RuntimeFieldFetchFields... values) For typelookupAPI name:
fetch_fieldsAdds one or more values to
fetchFields. -
fetchFields
public final RuntimeField.Builder fetchFields(Function<RuntimeFieldFetchFields.Builder, ObjectBuilder<RuntimeFieldFetchFields>> fn) For typelookupAPI name:
fetch_fieldsAdds a value to
fetchFieldsusing a builder lambda. -
format
A custom format fordatetype runtime fields.API name:
format -
inputField
For typelookupAPI name:
input_field -
targetField
For typelookupAPI name:
target_field -
targetIndex
For typelookupAPI 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:
selfin classWithJsonObjectBuilderBase<RuntimeField.Builder>
-
build
Builds aRuntimeField.- Specified by:
buildin interfaceObjectBuilder<RuntimeField>- Throws:
NullPointerException- if some of the required fields are null.
-