Class Processor
- java.lang.Object
-
- org.opensearch.client.opensearch.ingest.Processor
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Processor.Kind,java.lang.Object>
@JsonpDeserializable public class Processor extends java.lang.Object implements TaggedUnion<Processor.Kind,java.lang.Object>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessor.Builderstatic classProcessor.KindProcessorvariant kinds.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Processor>_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description Processor(ProcessorVariant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object_get()Processor.Kind_kind()Get the of the kind of variant held by this object.AppendProcessorappend()Get theappendvariant value.AttachmentProcessorattachment()Get theattachmentvariant value.BytesProcessorbytes()Get thebytesvariant value.CircleProcessorcircle()Get thecirclevariant value.ConvertProcessorconvert()Get theconvertvariant value.CsvProcessorcsv()Get thecsvvariant value.DateProcessordate()Get thedatevariant value.DateIndexNameProcessordateIndexName()Get thedate_index_namevariant value.DissectProcessordissect()Get thedissectvariant value.DotExpanderProcessordotExpander()Get thedot_expandervariant value.DropProcessordrop()Get thedropvariant value.FailProcessorfail()Get thefailvariant value.ForeachProcessorforeach()Get theforeachvariant value.GeoIpProcessorgeoip()Get thegeoipvariant value.GrokProcessorgrok()Get thegrokvariant value.GsubProcessorgsub()Get thegsubvariant value.InferenceProcessorinference()Get theinferencevariant value.booleanisAppend()Is this variant instance of kindappend?booleanisAttachment()Is this variant instance of kindattachment?booleanisBytes()Is this variant instance of kindbytes?booleanisCircle()Is this variant instance of kindcircle?booleanisConvert()Is this variant instance of kindconvert?booleanisCsv()Is this variant instance of kindcsv?booleanisDate()Is this variant instance of kinddate?booleanisDateIndexName()Is this variant instance of kinddate_index_name?booleanisDissect()Is this variant instance of kinddissect?booleanisDotExpander()Is this variant instance of kinddot_expander?booleanisDrop()Is this variant instance of kinddrop?booleanisFail()Is this variant instance of kindfail?booleanisForeach()Is this variant instance of kindforeach?booleanisGeoip()Is this variant instance of kindgeoip?booleanisGrok()Is this variant instance of kindgrok?booleanisGsub()Is this variant instance of kindgsub?booleanisInference()Is this variant instance of kindinference?booleanisJoin()Is this variant instance of kindjoin?booleanisJson()Is this variant instance of kindjson?booleanisKv()Is this variant instance of kindkv?booleanisLowercase()Is this variant instance of kindlowercase?booleanisPipeline()Is this variant instance of kindpipeline?booleanisRemove()Is this variant instance of kindremove?booleanisRename()Is this variant instance of kindrename?booleanisScript()Is this variant instance of kindscript?booleanisSet()Is this variant instance of kindset?booleanisSetSecurityUser()Is this variant instance of kindset_security_user?booleanisSort()Is this variant instance of kindsort?booleanisSplit()Is this variant instance of kindsplit?booleanisTrim()Is this variant instance of kindtrim?booleanisUppercase()Is this variant instance of kinduppercase?booleanisUrldecode()Is this variant instance of kindurldecode?booleanisUserAgent()Is this variant instance of kinduser_agent?JoinProcessorjoin()Get thejoinvariant value.JsonProcessorjson()Get thejsonvariant value.KeyValueProcessorkv()Get thekvvariant value.LowercaseProcessorlowercase()Get thelowercasevariant value.static Processorof(java.util.function.Function<Processor.Builder,ObjectBuilder<Processor>> fn)PipelineProcessorpipeline()Get thepipelinevariant value.RemoveProcessorremove()Get theremovevariant value.RenameProcessorrename()Get therenamevariant value.Scriptscript()Get thescriptvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)SetProcessorset()Get thesetvariant value.SetSecurityUserProcessorsetSecurityUser()Get theset_security_uservariant value.protected static voidsetupProcessorDeserializer(ObjectDeserializer<Processor.Builder> op)SortProcessorsort()Get thesortvariant value.SplitProcessorsplit()Get thesplitvariant value.TrimProcessortrim()Get thetrimvariant value.UppercaseProcessoruppercase()Get theuppercasevariant value.UrlDecodeProcessorurldecode()Get theurldecodevariant value.UserAgentProcessoruserAgent()Get theuser_agentvariant value.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<Processor> _DESERIALIZER
-
-
Constructor Detail
-
Processor
public Processor(ProcessorVariant value)
-
-
Method Detail
-
_kind
public final Processor.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Processor.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()
- Specified by:
_getin 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
public AttachmentProcessor attachment()
Get theattachmentvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theattachmentkind.
-
isAppend
public boolean isAppend()
Is this variant instance of kindappend?
-
append
public AppendProcessor append()
Get theappendvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theappendkind.
-
isCsv
public boolean isCsv()
Is this variant instance of kindcsv?
-
csv
public CsvProcessor csv()
Get thecsvvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecsvkind.
-
isConvert
public boolean isConvert()
Is this variant instance of kindconvert?
-
convert
public ConvertProcessor convert()
Get theconvertvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theconvertkind.
-
isDate
public boolean isDate()
Is this variant instance of kinddate?
-
date
public DateProcessor date()
Get thedatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedatekind.
-
isDateIndexName
public boolean isDateIndexName()
Is this variant instance of kinddate_index_name?
-
dateIndexName
public DateIndexNameProcessor dateIndexName()
Get thedate_index_namevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_index_namekind.
-
isDotExpander
public boolean isDotExpander()
Is this variant instance of kinddot_expander?
-
dotExpander
public DotExpanderProcessor dotExpander()
Get thedot_expandervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedot_expanderkind.
-
isFail
public boolean isFail()
Is this variant instance of kindfail?
-
fail
public FailProcessor fail()
Get thefailvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefailkind.
-
isForeach
public boolean isForeach()
Is this variant instance of kindforeach?
-
foreach
public ForeachProcessor foreach()
Get theforeachvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theforeachkind.
-
isJson
public boolean isJson()
Is this variant instance of kindjson?
-
json
public JsonProcessor json()
Get thejsonvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thejsonkind.
-
isUserAgent
public boolean isUserAgent()
Is this variant instance of kinduser_agent?
-
userAgent
public UserAgentProcessor userAgent()
Get theuser_agentvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theuser_agentkind.
-
isKv
public boolean isKv()
Is this variant instance of kindkv?
-
kv
public KeyValueProcessor kv()
Get thekvvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekvkind.
-
isGeoip
public boolean isGeoip()
Is this variant instance of kindgeoip?
-
geoip
public GeoIpProcessor geoip()
Get thegeoipvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeoipkind.
-
isGrok
public boolean isGrok()
Is this variant instance of kindgrok?
-
grok
public GrokProcessor grok()
Get thegrokvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegrokkind.
-
isGsub
public boolean isGsub()
Is this variant instance of kindgsub?
-
gsub
public GsubProcessor gsub()
Get thegsubvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegsubkind.
-
isJoin
public boolean isJoin()
Is this variant instance of kindjoin?
-
join
public JoinProcessor join()
Get thejoinvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thejoinkind.
-
isLowercase
public boolean isLowercase()
Is this variant instance of kindlowercase?
-
lowercase
public LowercaseProcessor lowercase()
Get thelowercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelowercasekind.
-
isRemove
public boolean isRemove()
Is this variant instance of kindremove?
-
remove
public RemoveProcessor remove()
Get theremovevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theremovekind.
-
isRename
public boolean isRename()
Is this variant instance of kindrename?
-
rename
public RenameProcessor rename()
Get therenamevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therenamekind.
-
isScript
public boolean isScript()
Is this variant instance of kindscript?
-
script
public Script script()
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
isSet
public boolean isSet()
Is this variant instance of kindset?
-
set
public SetProcessor set()
Get thesetvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesetkind.
-
isSort
public boolean isSort()
Is this variant instance of kindsort?
-
sort
public SortProcessor sort()
Get thesortvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesortkind.
-
isSplit
public boolean isSplit()
Is this variant instance of kindsplit?
-
split
public SplitProcessor split()
Get thesplitvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesplitkind.
-
isTrim
public boolean isTrim()
Is this variant instance of kindtrim?
-
trim
public TrimProcessor trim()
Get thetrimvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetrimkind.
-
isUppercase
public boolean isUppercase()
Is this variant instance of kinduppercase?
-
uppercase
public UppercaseProcessor uppercase()
Get theuppercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theuppercasekind.
-
isUrldecode
public boolean isUrldecode()
Is this variant instance of kindurldecode?
-
urldecode
public UrlDecodeProcessor urldecode()
Get theurldecodevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theurldecodekind.
-
isBytes
public boolean isBytes()
Is this variant instance of kindbytes?
-
bytes
public BytesProcessor bytes()
Get thebytesvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebyteskind.
-
isDissect
public boolean isDissect()
Is this variant instance of kinddissect?
-
dissect
public DissectProcessor dissect()
Get thedissectvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedissectkind.
-
isSetSecurityUser
public boolean isSetSecurityUser()
Is this variant instance of kindset_security_user?
-
setSecurityUser
public SetSecurityUserProcessor setSecurityUser()
Get theset_security_uservariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theset_security_userkind.
-
isPipeline
public boolean isPipeline()
Is this variant instance of kindpipeline?
-
pipeline
public PipelineProcessor pipeline()
Get thepipelinevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepipelinekind.
-
isDrop
public boolean isDrop()
Is this variant instance of kinddrop?
-
drop
public DropProcessor drop()
Get thedropvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedropkind.
-
isCircle
public boolean isCircle()
Is this variant instance of kindcircle?
-
circle
public CircleProcessor circle()
Get thecirclevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecirclekind.
-
isInference
public boolean isInference()
Is this variant instance of kindinference?
-
inference
public InferenceProcessor inference()
Get theinferencevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theinferencekind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupProcessorDeserializer
protected static void setupProcessorDeserializer(ObjectDeserializer<Processor.Builder> op)
-
-