Class FingerprintProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<FingerprintProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.FingerprintProcessor.Builder
- All Implemented Interfaces:
WithJson<FingerprintProcessor.Builder>
,ObjectBuilder<FingerprintProcessor>
- Enclosing class:
- FingerprintProcessor
public static class FingerprintProcessor.Builder
extends ProcessorBase.AbstractBuilder<FingerprintProcessor.Builder>
implements ObjectBuilder<FingerprintProcessor>
Builder for
FingerprintProcessor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aFingerprintProcessor
.Required - Array of fields to include in the fingerprint.Required - Array of fields to include in the fingerprint.ignoreMissing
(Boolean value) If true, the processor ignores any missing fields.method
(FingerprintDigest value) The hash method used to compute the fingerprint.Salt value for the hash function.protected FingerprintProcessor.Builder
self()
targetField
(String value) Output field for the fingerprint.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, 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
-
fields
Required - Array of fields to include in the fingerprint. For objects, the processor hashes both the field key and value. For other fields, the processor hashes only the field value.API name:
fields
Adds all elements of
list
tofields
. -
fields
Required - Array of fields to include in the fingerprint. For objects, the processor hashes both the field key and value. For other fields, the processor hashes only the field value.API name:
fields
Adds one or more values to
fields
. -
targetField
Output field for the fingerprint.API name:
target_field
-
salt
Salt value for the hash function.API name:
salt
-
method
The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, SHA-256, SHA-512, or MurmurHash3.API name:
method
-
ignoreMissing
If true, the processor ignores any missing fields. If all fields are missing, the processor silently exits without modifying the document.API name:
ignore_missing
-
self
- Specified by:
self
in classProcessorBase.AbstractBuilder<FingerprintProcessor.Builder>
-
build
Builds aFingerprintProcessor
.- Specified by:
build
in interfaceObjectBuilder<FingerprintProcessor>
- Throws:
NullPointerException
- if some of the required fields are null.
-