QueryExecutionResult Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. QueryExecutionResult
- com.
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 Query |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Query |
fromJson(JsonReader jsonReader)
Reads an instance of Query |
| String |
queryText()
Get the query |
|
Execution |
sourceResult()
Get the source |
| Long |
statementsInBatch()
Get the statements |
|
Execution |
targetResult()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Query |
withQueryText(String queryText)
Set the query |
|
Query |
withSourceResult(ExecutionStatistics sourceResult)
Set the source |
|
Query |
withStatementsInBatch(Long statementsInBatch)
Set the statements |
|
Query |
withTargetResult(ExecutionStatistics targetResult)
Set 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:
Returns:
Throws:
queryText
public String queryText()
Get the queryText property: Query text retrieved from the source server.
Returns:
sourceResult
public ExecutionStatistics sourceResult()
Get the sourceResult property: Query analysis result from the source.
Returns:
statementsInBatch
public Long statementsInBatch()
Get the statementsInBatch property: Total no. of statements in the batch.
Returns:
targetResult
public ExecutionStatistics targetResult()
Get the targetResult property: Query analysis result from the target.
Returns:
toJson
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:
Returns:
withSourceResult
public QueryExecutionResult withSourceResult(ExecutionStatistics sourceResult)
Set the sourceResult property: Query analysis result from the source.
Parameters:
Returns:
withStatementsInBatch
public QueryExecutionResult withStatementsInBatch(Long statementsInBatch)
Set the statementsInBatch property: Total no. of statements in the batch.
Parameters:
Returns:
withTargetResult
public QueryExecutionResult withTargetResult(ExecutionStatistics targetResult)
Set the targetResult property: Query analysis result from the target.
Parameters:
Returns: