Class GrokProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<GrokProcessor.Builder>
org.opensearch.client.opensearch.ingest.GrokProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<GrokProcessor.Builder,,GrokProcessor> MutableBuilder<GrokProcessor.Builder,,GrokProcessor> ObjectBuilder<GrokProcessor>
- Enclosing class:
GrokProcessor
public static class GrokProcessor.Builder
extends ProcessorBase.AbstractBuilder<GrokProcessor.Builder>
implements CopyableBuilder<GrokProcessor.Builder,GrokProcessor>
Builder for
GrokProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGrokProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GrokProcessor.BuilderRequired - API name:fieldfinal GrokProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.final GrokProcessor.BuilderpatternDefinitions(String key, String value) A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor.final GrokProcessor.BuilderpatternDefinitions(Map<String, String> map) A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor.final GrokProcessor.BuilderRequired - An ordered list of grok expression to match and extract named captures with.final GrokProcessor.BuilderRequired - An ordered list of grok expression to match and extract named captures with.protected GrokProcessor.Builderself()final GrokProcessor.BuildertraceMatch(Boolean value) Whentrue,_ingest._grok_match_indexwill be inserted into your matched document's metadata with the index into the pattern found inpatternsthat matched.Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, tagMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GrokProcessor.Builder,GrokProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<GrokProcessor.Builder>
-
field
Required - API name:field -
ignoreMissing
Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.API name:
ignore_missing -
patternDefinitions
A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor. Patterns matching existing names will override the pre-existing definition.API name:
pattern_definitionsAdds all elements of
maptopatternDefinitions. -
patternDefinitions
A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor. Patterns matching existing names will override the pre-existing definition.API name:
pattern_definitionsAdds an entry to
patternDefinitions. -
patterns
Required - An ordered list of grok expression to match and extract named captures with. Returns on the first expression in the list that matches.API name:
patternsAdds all elements of
listtopatterns. -
patterns
Required - An ordered list of grok expression to match and extract named captures with. Returns on the first expression in the list that matches.API name:
patternsAdds one or more values to
patterns. -
traceMatch
Whentrue,_ingest._grok_match_indexwill be inserted into your matched document's metadata with the index into the pattern found inpatternsthat matched.API name:
trace_match -
build
Builds aGrokProcessor.- Specified by:
buildin interfaceObjectBuilder<GrokProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-