java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Tokenizer
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<JsonpSerializable>

@JsonpDeserializable
public class Tokenizer
extends java.lang.Object
implements TaggedUnion<JsonpSerializable>, 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<JsonpSerializable>
      Returns:
      the variant type
    • _get

      public JsonpSerializable _get()
      Specified by:
      _get in interface TaggedUnion<JsonpSerializable>
    • charGroup

      public CharGroupTokenizer charGroup()
      Get the char_group variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the char_group kind.
    • edgeNgram

      public EdgeNGramTokenizer edgeNgram()
      Get the edge_ngram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the edge_ngram kind.
    • keyword

      public KeywordTokenizer keyword()
      Get the keyword variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the keyword kind.
    • kuromojiTokenizer

      public KuromojiTokenizer kuromojiTokenizer()
      Get the kuromoji_tokenizer variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the kuromoji_tokenizer kind.
    • letter

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

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

      public NGramTokenizer ngram()
      Get the ngram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the ngram kind.
    • noriTokenizer

      public NoriTokenizer noriTokenizer()
      Get the nori_tokenizer variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the nori_tokenizer kind.
    • pathHierarchy

      public PathHierarchyTokenizer pathHierarchy()
      Get the path_hierarchy variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the path_hierarchy kind.
    • standard

      public StandardTokenizer standard()
      Get the standard variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the standard kind.
    • uaxUrlEmail

      public UaxEmailUrlTokenizer uaxUrlEmail()
      Get the uax_url_email variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the uax_url_email kind.
    • whitespace

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

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

      protected static void setupTokenizerDeserializer​(DelegatingDeserializer<Tokenizer.Builder> op)