Class Processor

java.lang.Object
co.elastic.clients.elasticsearch.ingest.Processor
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<java.lang.Object>

@JsonpDeserializable
public class Processor
extends java.lang.Object
implements TaggedUnion<java.lang.Object>, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • _type

      public java.lang.String _type()
      Description copied from interface: TaggedUnion
      Get the of the type of the variant held by this union object.
      Specified by:
      _type in interface TaggedUnion<java.lang.Object>
      Returns:
      the variant type
    • _get

      public java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<java.lang.Object>
    • attachment

      public AttachmentProcessor attachment()
      Get the attachment variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the attachment kind.
    • append

      public AppendProcessor append()
      Get the append variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the append kind.
    • csv

      public CsvProcessor csv()
      Get the csv variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the csv kind.
    • convert

      public ConvertProcessor convert()
      Get the convert variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the convert kind.
    • date

      public DateProcessor date()
      Get the date variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the date kind.
    • dateIndexName

      public DateIndexNameProcessor dateIndexName()
      Get the date_index_name variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the date_index_name kind.
    • dotExpander

      public DotExpanderProcessor dotExpander()
      Get the dot_expander variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the dot_expander kind.
    • enrich

      public EnrichProcessor enrich()
      Get the enrich variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the enrich kind.
    • fail

      public FailProcessor fail()
      Get the fail variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the fail kind.
    • foreach

      public ForeachProcessor foreach()
      Get the foreach variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the foreach kind.
    • json

      public JsonProcessor json()
      Get the json variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the json kind.
    • userAgent

      public UserAgentProcessor userAgent()
      Get the user_agent variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the user_agent kind.
    • kv

      public KeyValueProcessor kv()
      Get the kv variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the kv kind.
    • geoip

      public GeoIpProcessor geoip()
      Get the geoip variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the geoip kind.
    • grok

      public GrokProcessor grok()
      Get the grok variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the grok kind.
    • gsub

      public GsubProcessor gsub()
      Get the gsub variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the gsub kind.
    • join

      public JoinProcessor join()
      Get the join variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the join kind.
    • lowercase

      public LowercaseProcessor lowercase()
      Get the lowercase variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the lowercase kind.
    • remove

      public RemoveProcessor remove()
      Get the remove variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the remove kind.
    • rename

      public RenameProcessor rename()
      Get the rename variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the rename kind.
    • script

      public jakarta.json.JsonValue script()
      Get the script variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the script kind.
    • set

      public SetProcessor set()
      Get the set variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the set kind.
    • sort

      public SortProcessor sort()
      Get the sort variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the sort kind.
    • split

      public SplitProcessor split()
      Get the split variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the split kind.
    • trim

      public TrimProcessor trim()
      Get the trim variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the trim kind.
    • uppercase

      public UppercaseProcessor uppercase()
      Get the uppercase variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the uppercase kind.
    • urldecode

      public UrlDecodeProcessor urldecode()
      Get the urldecode variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the urldecode kind.
    • bytes

      public BytesProcessor bytes()
      Get the bytes variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the bytes kind.
    • dissect

      public DissectProcessor dissect()
      Get the dissect variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the dissect kind.
    • setSecurityUser

      public SetSecurityUserProcessor setSecurityUser()
      Get the set_security_user variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the set_security_user kind.
    • pipeline

      public PipelineProcessor pipeline()
      Get the pipeline variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the pipeline kind.
    • drop

      public DropProcessor drop()
      Get the drop variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the drop kind.
    • circle

      public CircleProcessor circle()
      Get the circle variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the circle kind.
    • inference

      public InferenceProcessor inference()
      Get the inference variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the inference kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • setupProcessorDeserializer

      protected static void setupProcessorDeserializer​(DelegatingDeserializer<Processor.Builder> op)