SetSchemaResponse.MigrationFailure
public class SetSchemaResponse.MigrationFailure
The class represents a post-migrated GenericDocument that failed to be saved by setSchemaAsync.
Summary
Public constructors |
|---|
MigrationFailure(Constructs a new |
Public methods |
|
|---|---|
@NonNull AppSearchResult<Void> |
Returns the |
@NonNull String |
Returns the id of the |
@NonNull String |
Returns the namespace of the |
@NonNull String |
Returns the schema type of the |
@NonNull String |
toString() |
Public constructors
MigrationFailure
public MigrationFailure(
@NonNull String namespace,
@NonNull String documentId,
@NonNull String schemaType,
@NonNull AppSearchResult<Object> failedResult
)
Constructs a new MigrationFailure.
| Parameters | |
|---|---|
@NonNull String namespace |
The namespace of the document which failed to be migrated. |
@NonNull String documentId |
The id of the document which failed to be migrated. |
@NonNull String schemaType |
The type of the document which failed to be migrated. |
@NonNull AppSearchResult<Object> failedResult |
The reason why the document failed to be indexed. |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if the provided |
Public methods
getAppSearchResult
public @NonNull AppSearchResult<Void> getAppSearchResult()
Returns the AppSearchResult that indicates why the post-migration GenericDocument failed to be indexed.
getDocumentId
public @NonNull String getDocumentId()
Returns the id of the GenericDocument that failed to be migrated.
getNamespace
public @NonNull String getNamespace()
Returns the namespace of the GenericDocument that failed to be migrated.
getSchemaType
public @NonNull String getSchemaType()
Returns the schema type of the GenericDocument that failed to be migrated.