Class GeoGridProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<GeoGridProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.GeoGridProcessor.Builder
- All Implemented Interfaces:
WithJson<GeoGridProcessor.Builder>
,ObjectBuilder<GeoGridProcessor>
- Enclosing class:
- GeoGridProcessor
public static class GeoGridProcessor.Builder
extends ProcessorBase.AbstractBuilder<GeoGridProcessor.Builder>
implements ObjectBuilder<GeoGridProcessor>
Builder for
GeoGridProcessor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGeoGridProcessor
.final GeoGridProcessor.Builder
childrenField
(String value) If specified and children tiles exist, save those tile addresses to this field as an array of strings.final GeoGridProcessor.Builder
Required - The field to interpret as a geo-tile.= The field format is determined by thetile_type
.final GeoGridProcessor.Builder
ignoreMissing
(Boolean value) Iftrue
andfield
does not exist, the processor quietly exits without modifying the document.final GeoGridProcessor.Builder
nonChildrenField
(String value) If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings.final GeoGridProcessor.Builder
parentField
(String value) If specified and a parent tile exists, save that tile address to this field.final GeoGridProcessor.Builder
precisionField
(String value) If specified, save the tile precision (zoom) as an integer to this field.protected GeoGridProcessor.Builder
self()
final GeoGridProcessor.Builder
targetField
(String value) The field to assign the polygon shape to, by default, thefield
is updated in-place.final GeoGridProcessor.Builder
targetFormat
(GeoGridTargetFormat value) Which format to save the generated polygon in.final GeoGridProcessor.Builder
tileType
(GeoGridTileType value) Required - Three tile formats are understood: geohash, geotile and geohex.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tag
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
-
field
Required - The field to interpret as a geo-tile.= The field format is determined by thetile_type
.API name:
field
-
tileType
Required - Three tile formats are understood: geohash, geotile and geohex.API name:
tile_type
-
targetField
The field to assign the polygon shape to, by default, thefield
is updated in-place.API name:
target_field
-
parentField
If specified and a parent tile exists, save that tile address to this field.API name:
parent_field
-
childrenField
If specified and children tiles exist, save those tile addresses to this field as an array of strings.API name:
children_field
-
nonChildrenField
If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings.API name:
non_children_field
-
precisionField
If specified, save the tile precision (zoom) as an integer to this field.API name:
precision_field
-
ignoreMissing
Iftrue
andfield
does not exist, the processor quietly exits without modifying the document.API name:
ignore_missing
-
targetFormat
Which format to save the generated polygon in.API name:
target_format
-
self
- Specified by:
self
in classProcessorBase.AbstractBuilder<GeoGridProcessor.Builder>
-
build
Builds aGeoGridProcessor
.- Specified by:
build
in interfaceObjectBuilder<GeoGridProcessor>
- Throws:
NullPointerException
- if some of the required fields are null.
-