AnalyzeResult Class

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

Implements

public final class AnalyzeResult
implements JsonSerializable<AnalyzeResult>

The result of testing an analyzer on text.

Constructor Summary

Constructor Description
AnalyzeResult(List<AnalyzedTokenInfo> tokens)

Creates an instance of AnalyzeResult class.

Method Summary

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

Reads an instance of AnalyzeResult from the JsonReader.

List<AnalyzedTokenInfo> getTokens()

Get the tokens property: The list of tokens returned by the analyzer specified in the request.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AnalyzeResult

public AnalyzeResult(List<AnalyzedTokenInfo> tokens)

Creates an instance of AnalyzeResult class.

Parameters:

tokens - the tokens value to set.

Method Details

fromJson

public static AnalyzeResult fromJson(JsonReader jsonReader)

Reads an instance of AnalyzeResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getTokens

public List<AnalyzedTokenInfo> getTokens()

Get the tokens property: The list of tokens returned by the analyzer specified in the request.

Returns:

the tokens value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to