Class IndexerExecutionResult
java.lang.Object
com.azure.search.documents.indexes.models.IndexerExecutionResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IndexerExecutionResult>
public final class IndexerExecutionResult
extends Object
implements com.azure.json.JsonSerializable<IndexerExecutionResult>
Represents the result of an individual indexer execution.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexerExecutionResult(IndexerExecutionStatus status, List<SearchIndexerError> errors, List<SearchIndexerWarning> warnings, int itemCount, int failedItemCount) Creates an instance of IndexerExecutionResult class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexerExecutionResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IndexerExecutionResult from the JsonReader.Get the currentState property: All of the state that defines and dictates the indexer's current execution.Get the endTime property: The end time of this indexer execution, if the execution has already completed.Get the errorMessage property: The error message indicating the top-level error, if any.Get the errors property: The item-level indexing errors.intGet the failedItemCount property: The number of items that failed to be indexed during this indexer execution.Get the finalTrackingState property: Change tracking state with which an indexer execution finished.Get the initialTrackingState property: Change tracking state with which an indexer execution started.intGet the itemCount property: The number of items that were processed during this indexer execution.Get the startTime property: The start time of this indexer execution.Get the status property: The outcome of this indexer execution.Get the statusDetail property: The outcome of this indexer execution.Get the warnings property: The item-level indexing warnings.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
IndexerExecutionResult
public IndexerExecutionResult(IndexerExecutionStatus status, List<SearchIndexerError> errors, List<SearchIndexerWarning> warnings, int itemCount, int failedItemCount) Creates an instance of IndexerExecutionResult class.- Parameters:
status- the status value to set.errors- the errors value to set.warnings- the warnings value to set.itemCount- the itemCount value to set.failedItemCount- the failedItemCount value to set.
-
-
Method Details
-
getStatus
Get the status property: The outcome of this indexer execution.- Returns:
- the status value.
-
getStatusDetail
Get the statusDetail property: The outcome of this indexer execution.- Returns:
- the statusDetail value.
-
getCurrentState
Get the currentState property: All of the state that defines and dictates the indexer's current execution.- Returns:
- the currentState value.
-
getErrorMessage
Get the errorMessage property: The error message indicating the top-level error, if any.- Returns:
- the errorMessage value.
-
getStartTime
Get the startTime property: The start time of this indexer execution.- Returns:
- the startTime value.
-
getEndTime
Get the endTime property: The end time of this indexer execution, if the execution has already completed.- Returns:
- the endTime value.
-
getErrors
Get the errors property: The item-level indexing errors.- Returns:
- the errors value.
-
getWarnings
Get the warnings property: The item-level indexing warnings.- Returns:
- the warnings value.
-
getItemCount
public int getItemCount()Get the itemCount property: The number of items that were processed during this indexer execution. This includes both successfully processed items and items where indexing was attempted but failed.- Returns:
- the itemCount value.
-
getFailedItemCount
public int getFailedItemCount()Get the failedItemCount property: The number of items that failed to be indexed during this indexer execution.- Returns:
- the failedItemCount value.
-
getInitialTrackingState
Get the initialTrackingState property: Change tracking state with which an indexer execution started.- Returns:
- the initialTrackingState value.
-
getFinalTrackingState
Get the finalTrackingState property: Change tracking state with which an indexer execution finished.- Returns:
- the finalTrackingState value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IndexerExecutionResult>- Throws:
IOException
-
fromJson
public static IndexerExecutionResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of IndexerExecutionResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IndexerExecutionResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the IndexerExecutionResult.
-