SetSchemaResponse.MigrationFailure

public static class SetSchemaResponse.MigrationFailure
extends Object

java.lang.Object
   ↳ androidx.appsearch.app.SetSchemaResponse.MigrationFailure


The class represents a post-migrated GenericDocument that failed to be saved by AppSearchSession.setSchema(SetSchemaRequest).

Summary

Public constructors

MigrationFailure(String namespace, String documentId, String schemaType, AppSearchResult<?> failedResult)

Constructs a new SetSchemaResponse.MigrationFailure.

Public methods

AppSearchResult<Void> getAppSearchResult()

Returns the AppSearchResult that indicates why the post-migration GenericDocument failed to be indexed.

String getDocumentId()

Returns the id of the GenericDocument that failed to be migrated.

String getNamespace()

Returns the namespace of the GenericDocument that failed to be migrated.

String getSchemaType()

Returns the schema type of the GenericDocument that failed to be migrated.

String toString()

Inherited methods

Public constructors

MigrationFailure