Class Processor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.Processor
- All Implemented Interfaces:
JsonpSerializable
,OpenTaggedUnion<Processor.Kind,java.lang.Object>
,TaggedUnion<Processor.Kind,java.lang.Object>
@JsonpDeserializable public class Processor extends java.lang.Object implements OpenTaggedUnion<Processor.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Processor.Builder
static class
Processor.Kind
Processor
variant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Processor>
_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description Processor(ProcessorVariant value)
-
Method Summary
Modifier and Type Method Description JsonData
_custom()
Get the custom plugin-defined variant value.java.lang.String
_customKind()
Get the actual kind when_kind()
equalsProcessor.Kind._Custom
(plugin-defined variant).java.lang.Object
_get()
boolean
_isCustom()
Is this a customProcessor
defined by a plugin?Processor.Kind
_kind()
Get the of the kind of variant held by this object.AppendProcessor
append()
Get theappend
variant value.AttachmentProcessor
attachment()
Get theattachment
variant value.BytesProcessor
bytes()
Get thebytes
variant value.CircleProcessor
circle()
Get thecircle
variant value.ConvertProcessor
convert()
Get theconvert
variant value.CsvProcessor
csv()
Get thecsv
variant value.DateProcessor
date()
Get thedate
variant value.DateIndexNameProcessor
dateIndexName()
Get thedate_index_name
variant value.DissectProcessor
dissect()
Get thedissect
variant value.DotExpanderProcessor
dotExpander()
Get thedot_expander
variant value.DropProcessor
drop()
Get thedrop
variant value.EnrichProcessor
enrich()
Get theenrich
variant value.FailProcessor
fail()
Get thefail
variant value.ForeachProcessor
foreach()
Get theforeach
variant value.GeoIpProcessor
geoip()
Get thegeoip
variant value.GrokProcessor
grok()
Get thegrok
variant value.GsubProcessor
gsub()
Get thegsub
variant value.InferenceProcessor
inference()
Get theinference
variant value.boolean
isAppend()
Is this variant instance of kindappend
?boolean
isAttachment()
Is this variant instance of kindattachment
?boolean
isBytes()
Is this variant instance of kindbytes
?boolean
isCircle()
Is this variant instance of kindcircle
?boolean
isConvert()
Is this variant instance of kindconvert
?boolean
isCsv()
Is this variant instance of kindcsv
?boolean
isDate()
Is this variant instance of kinddate
?boolean
isDateIndexName()
Is this variant instance of kinddate_index_name
?boolean
isDissect()
Is this variant instance of kinddissect
?boolean
isDotExpander()
Is this variant instance of kinddot_expander
?boolean
isDrop()
Is this variant instance of kinddrop
?boolean
isEnrich()
Is this variant instance of kindenrich
?boolean
isFail()
Is this variant instance of kindfail
?boolean
isForeach()
Is this variant instance of kindforeach
?boolean
isGeoip()
Is this variant instance of kindgeoip
?boolean
isGrok()
Is this variant instance of kindgrok
?boolean
isGsub()
Is this variant instance of kindgsub
?boolean
isInference()
Is this variant instance of kindinference
?boolean
isJoin()
Is this variant instance of kindjoin
?boolean
isJson()
Is this variant instance of kindjson
?boolean
isKv()
Is this variant instance of kindkv
?boolean
isLowercase()
Is this variant instance of kindlowercase
?boolean
isPipeline()
Is this variant instance of kindpipeline
?boolean
isRemove()
Is this variant instance of kindremove
?boolean
isRename()
Is this variant instance of kindrename
?boolean
isScript()
Is this variant instance of kindscript
?boolean
isSet()
Is this variant instance of kindset
?boolean
isSetSecurityUser()
Is this variant instance of kindset_security_user
?boolean
isSort()
Is this variant instance of kindsort
?boolean
isSplit()
Is this variant instance of kindsplit
?boolean
isTrim()
Is this variant instance of kindtrim
?boolean
isUppercase()
Is this variant instance of kinduppercase
?boolean
isUrldecode()
Is this variant instance of kindurldecode
?boolean
isUserAgent()
Is this variant instance of kinduser_agent
?JoinProcessor
join()
Get thejoin
variant value.JsonProcessor
json()
Get thejson
variant value.KeyValueProcessor
kv()
Get thekv
variant value.LowercaseProcessor
lowercase()
Get thelowercase
variant value.static Processor
of(java.util.function.Function<Processor.Builder,ObjectBuilder<Processor>> fn)
PipelineProcessor
pipeline()
Get thepipeline
variant value.RemoveProcessor
remove()
Get theremove
variant value.RenameProcessor
rename()
Get therename
variant value.Script
script()
Get thescript
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
SetProcessor
set()
Get theset
variant value.SetSecurityUserProcessor
setSecurityUser()
Get theset_security_user
variant value.protected static void
setupProcessorDeserializer(ObjectDeserializer<Processor.Builder> op)
SortProcessor
sort()
Get thesort
variant value.SplitProcessor
split()
Get thesplit
variant value.java.lang.String
toString()
TrimProcessor
trim()
Get thetrim
variant value.UppercaseProcessor
uppercase()
Get theuppercase
variant value.UrlDecodeProcessor
urldecode()
Get theurldecode
variant value.UserAgentProcessor
userAgent()
Get theuser_agent
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Processor
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Processor.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<Processor.Kind,java.lang.Object>
-
of
public static Processor of(java.util.function.Function<Processor.Builder,ObjectBuilder<Processor>> fn) -
isAttachment
public boolean isAttachment()Is this variant instance of kindattachment
? -
attachment
Get theattachment
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theattachment
kind.
-
isAppend
public boolean isAppend()Is this variant instance of kindappend
? -
append
Get theappend
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theappend
kind.
-
isCsv
public boolean isCsv()Is this variant instance of kindcsv
? -
csv
Get thecsv
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecsv
kind.
-
isConvert
public boolean isConvert()Is this variant instance of kindconvert
? -
convert
Get theconvert
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theconvert
kind.
-
isDate
public boolean isDate()Is this variant instance of kinddate
? -
date
Get thedate
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate
kind.
-
isDateIndexName
public boolean isDateIndexName()Is this variant instance of kinddate_index_name
? -
dateIndexName
Get thedate_index_name
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_index_name
kind.
-
isDotExpander
public boolean isDotExpander()Is this variant instance of kinddot_expander
? -
dotExpander
Get thedot_expander
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedot_expander
kind.
-
isEnrich
public boolean isEnrich()Is this variant instance of kindenrich
? -
enrich
Get theenrich
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theenrich
kind.
-
isFail
public boolean isFail()Is this variant instance of kindfail
? -
fail
Get thefail
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefail
kind.
-
isForeach
public boolean isForeach()Is this variant instance of kindforeach
? -
foreach
Get theforeach
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theforeach
kind.
-
isJson
public boolean isJson()Is this variant instance of kindjson
? -
json
Get thejson
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thejson
kind.
-
isUserAgent
public boolean isUserAgent()Is this variant instance of kinduser_agent
? -
userAgent
Get theuser_agent
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theuser_agent
kind.
-
isKv
public boolean isKv()Is this variant instance of kindkv
? -
kv
Get thekv
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekv
kind.
-
isGeoip
public boolean isGeoip()Is this variant instance of kindgeoip
? -
geoip
Get thegeoip
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeoip
kind.
-
isGrok
public boolean isGrok()Is this variant instance of kindgrok
? -
grok
Get thegrok
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegrok
kind.
-
isGsub
public boolean isGsub()Is this variant instance of kindgsub
? -
gsub
Get thegsub
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegsub
kind.
-
isJoin
public boolean isJoin()Is this variant instance of kindjoin
? -
join
Get thejoin
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thejoin
kind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase
? -
lowercase
Get thelowercase
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thelowercase
kind.
-
isRemove
public boolean isRemove()Is this variant instance of kindremove
? -
remove
Get theremove
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theremove
kind.
-
isRename
public boolean isRename()Is this variant instance of kindrename
? -
rename
Get therename
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therename
kind.
-
isScript
public boolean isScript()Is this variant instance of kindscript
? -
script
Get thescript
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thescript
kind.
-
isSet
public boolean isSet()Is this variant instance of kindset
? -
set
Get theset
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theset
kind.
-
isSort
public boolean isSort()Is this variant instance of kindsort
? -
sort
Get thesort
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesort
kind.
-
isSplit
public boolean isSplit()Is this variant instance of kindsplit
? -
split
Get thesplit
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesplit
kind.
-
isTrim
public boolean isTrim()Is this variant instance of kindtrim
? -
trim
Get thetrim
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetrim
kind.
-
isUppercase
public boolean isUppercase()Is this variant instance of kinduppercase
? -
uppercase
Get theuppercase
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theuppercase
kind.
-
isUrldecode
public boolean isUrldecode()Is this variant instance of kindurldecode
? -
urldecode
Get theurldecode
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theurldecode
kind.
-
isBytes
public boolean isBytes()Is this variant instance of kindbytes
? -
bytes
Get thebytes
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebytes
kind.
-
isDissect
public boolean isDissect()Is this variant instance of kinddissect
? -
dissect
Get thedissect
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedissect
kind.
-
isSetSecurityUser
public boolean isSetSecurityUser()Is this variant instance of kindset_security_user
? -
setSecurityUser
Get theset_security_user
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theset_security_user
kind.
-
isPipeline
public boolean isPipeline()Is this variant instance of kindpipeline
? -
pipeline
Get thepipeline
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepipeline
kind.
-
isDrop
public boolean isDrop()Is this variant instance of kinddrop
? -
drop
Get thedrop
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedrop
kind.
-
isCircle
public boolean isCircle()Is this variant instance of kindcircle
? -
circle
Get thecircle
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecircle
kind.
-
isInference
public boolean isInference()Is this variant instance of kindinference
? -
inference
Get theinference
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theinference
kind.
-
_isCustom
public boolean _isCustom()Is this a customProcessor
defined by a plugin? -
_customKind
@Nullable public final java.lang.String _customKind()Get the actual kind when_kind()
equalsProcessor.Kind._Custom
(plugin-defined variant).- Specified by:
_customKind
in interfaceOpenTaggedUnion<Processor.Kind,java.lang.Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is notProcessor.Kind._Custom
.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupProcessorDeserializer
-