LexicalTokenizer Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.LexicalTokenizer

Implements

public abstract class LexicalTokenizer
implements JsonSerializable<LexicalTokenizer>

Base type for tokenizers.

Constructor Summary

Constructor Description
LexicalTokenizer(String name)

Creates an instance of LexicalTokenizer class.

Method Summary

Modifier and Type Method and Description
static LexicalTokenizer fromJson(JsonReader jsonReader)

Reads an instance of LexicalTokenizer from the JsonReader.

String getName()

Get the name property: The name of the tokenizer.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

LexicalTokenizer

public LexicalTokenizer(String name)

Creates an instance of LexicalTokenizer class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static LexicalTokenizer fromJson(JsonReader jsonReader)

Reads an instance of LexicalTokenizer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LexicalTokenizer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties or the polymorphic discriminator.

getName

public String getName()

Get the name property: The name of the tokenizer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to