Class GeoIpProcessor
java.lang.Object
org.opensearch.client.opensearch.ingest.ProcessorBase
org.opensearch.client.opensearch.ingest.GeoIpProcessor
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ProcessorVariant,ToCopyableBuilder<GeoIpProcessor.Builder,GeoIpProcessor>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class GeoIpProcessor
extends ProcessorBase
implements ProcessorVariant, ToCopyableBuilder<GeoIpProcessor.Builder,GeoIpProcessor>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeoIpProcessor> Json deserializer forGeoIpProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessorvariant kind.static GeoIpProcessor.Builderbuilder()final StringThe database filename referring to a database the module ships with (GeoLite2-City.mmdb,GeoLite2-Country.mmdb, orGeoLite2-ASN.mmdb) or a custom database in theingest-geoipconfig directory.booleanfinal Stringfield()Required - API name:fieldfinal BooleanIftrue, only the first found geoip data will be returned, even if the field contains an array.inthashCode()final BooleanIftrueandfielddoes not exist, the processor quietly exits without modifying the document.static GeoIpProcessorControls what properties are added to thetarget_fieldbased on the geoip lookup.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringAPI name:target_fieldCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch.ingest.ProcessorVariant
toProcessorMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forGeoIpProcessor
-
-
Method Details
-
of
-
_processorKind
Processorvariant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
databaseFile
The database filename referring to a database the module ships with (GeoLite2-City.mmdb,GeoLite2-Country.mmdb, orGeoLite2-ASN.mmdb) or a custom database in theingest-geoipconfig directory.API name:
database_file -
field
Required - API name:field -
firstOnly
Iftrue, only the first found geoip data will be returned, even if the field contains an array.API name:
first_only -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
properties
Controls what properties are added to thetarget_fieldbased on the geoip lookup.API name:
properties -
targetField
API name:target_field -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GeoIpProcessor.Builder,GeoIpProcessor> - Returns:
- a new builder instance.
-
builder
-
setupGeoIpProcessorDeserializer
protected static void setupGeoIpProcessorDeserializer(ObjectDeserializer<GeoIpProcessor.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classProcessorBase
-
equals
- Overrides:
equalsin classProcessorBase
-