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.BuilderchildrenField(String value) If specified and children tiles exist, save those tile addresses to this field as an array of strings.final GeoGridProcessor.BuilderRequired - The field to interpret as a geo-tile.= The field format is determined by thetile_type.final GeoGridProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.final GeoGridProcessor.BuildernonChildrenField(String value) If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings.final GeoGridProcessor.BuilderparentField(String value) If specified and a parent tile exists, save that tile address to this field.final GeoGridProcessor.BuilderprecisionField(String value) If specified, save the tile precision (zoom) as an integer to this field.protected GeoGridProcessor.Builderself()final GeoGridProcessor.BuildertargetField(String value) The field to assign the polygon shape to, by default, thefieldis updated in-place.final GeoGridProcessor.BuildertargetFormat(GeoGridTargetFormat value) Which format to save the generated polygon in.final GeoGridProcessor.BuildertileType(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_, 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 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, thefieldis 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
Iftrueandfielddoes 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:
selfin classProcessorBase.AbstractBuilder<GeoGridProcessor.Builder>
-
build
Builds aGeoGridProcessor.- Specified by:
buildin interfaceObjectBuilder<GeoGridProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-