QueryExecutionResult Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.QueryExecutionResult

Implements

public final class QueryExecutionResult
implements JsonSerializable<QueryExecutionResult>

Describes query analysis results for execution in source and target.

Constructor Summary

Constructor Description
QueryExecutionResult()

Creates an instance of QueryExecutionResult class.

Method Summary

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

Reads an instance of QueryExecutionResult from the JsonReader.

String queryText()

Get the queryText property: Query text retrieved from the source server.

ExecutionStatistics sourceResult()

Get the sourceResult property: Query analysis result from the source.

Long statementsInBatch()

Get the statementsInBatch property: Total no.

ExecutionStatistics targetResult()

Get the targetResult property: Query analysis result from the target.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QueryExecutionResult withQueryText(String queryText)

Set the queryText property: Query text retrieved from the source server.

QueryExecutionResult withSourceResult(ExecutionStatistics sourceResult)

Set the sourceResult property: Query analysis result from the source.

QueryExecutionResult withStatementsInBatch(Long statementsInBatch)

Set the statementsInBatch property: Total no.

QueryExecutionResult withTargetResult(ExecutionStatistics targetResult)

Set the targetResult property: Query analysis result from the target.

Methods inherited from java.lang.Object

Constructor Details

QueryExecutionResult

public QueryExecutionResult()

Creates an instance of QueryExecutionResult class.

Method Details

fromJson

public static QueryExecutionResult fromJson(JsonReader jsonReader)

Reads an instance of QueryExecutionResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the QueryExecutionResult.

queryText

public String queryText()

Get the queryText property: Query text retrieved from the source server.

Returns:

the queryText value.

sourceResult

public ExecutionStatistics sourceResult()

Get the sourceResult property: Query analysis result from the source.

Returns:

the sourceResult value.

statementsInBatch

public Long statementsInBatch()

Get the statementsInBatch property: Total no. of statements in the batch.

Returns:

the statementsInBatch value.

targetResult

public ExecutionStatistics targetResult()

Get the targetResult property: Query analysis result from the target.

Returns:

the targetResult value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withQueryText

public QueryExecutionResult withQueryText(String queryText)

Set the queryText property: Query text retrieved from the source server.

Parameters:

queryText - the queryText value to set.

Returns:

the QueryExecutionResult object itself.

withSourceResult

public QueryExecutionResult withSourceResult(ExecutionStatistics sourceResult)

Set the sourceResult property: Query analysis result from the source.

Parameters:

sourceResult - the sourceResult value to set.

Returns:

the QueryExecutionResult object itself.

withStatementsInBatch

public QueryExecutionResult withStatementsInBatch(Long statementsInBatch)

Set the statementsInBatch property: Total no. of statements in the batch.

Parameters:

statementsInBatch - the statementsInBatch value to set.

Returns:

the QueryExecutionResult object itself.

withTargetResult

public QueryExecutionResult withTargetResult(ExecutionStatistics targetResult)

Set the targetResult property: Query analysis result from the target.

Parameters:

targetResult - the targetResult value to set.

Returns:

the QueryExecutionResult object itself.

Applies to