KeywordTokenizer Class

public final class KeywordTokenizer
extends LexicalTokenizer

Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene.

Constructor Summary

Constructor Description
KeywordTokenizer(String name)

Creates an instance of KeywordTokenizer class.

Method Summary

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

Reads an instance of KeywordTokenizer from the JsonReader.

Integer getBufferSize()

Get the bufferSize property: The read buffer size in bytes.

String getOdataType()

Get the odataType property: The discriminator for derived types.

KeywordTokenizer setBufferSize(Integer bufferSize)

Set the bufferSize property: The read buffer size in bytes.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from LexicalTokenizer

Methods inherited from java.lang.Object

Constructor Details

KeywordTokenizer

public KeywordTokenizer(String name)

Creates an instance of KeywordTokenizer class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static KeywordTokenizer fromJson(JsonReader jsonReader)

Reads an instance of KeywordTokenizer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeywordTokenizer 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.

getBufferSize

public Integer getBufferSize()

Get the bufferSize property: The read buffer size in bytes. Default is 256.

Returns:

the bufferSize value.

getOdataType

public String getOdataType()

Get the odataType property: The discriminator for derived types.

Overrides:

KeywordTokenizer.getOdataType()

Returns:

the odataType value.

setBufferSize

public KeywordTokenizer setBufferSize(Integer bufferSize)

Set the bufferSize property: The read buffer size in bytes. Default is 256.

Parameters:

bufferSize - the bufferSize value to set.

Returns:

the KeywordTokenizer object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

KeywordTokenizer.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to