public class

SchemaMigrationStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.stats.SchemaMigrationStats.Builder

Overview

Builder for SchemaMigrationStats.

Summary

Constructors
publicBuilder(SchemaMigrationStats stats)

Creates a SchemaMigrationStats.Builder from a given SchemaMigrationStats.

publicBuilder(java.lang.String packageName, java.lang.String database)

Creates a SchemaMigrationStats.Builder.

Methods
public SchemaMigrationStatsbuild()

Builds a new SchemaMigrationStats from the SchemaMigrationStats.Builder.

public SchemaMigrationStats.BuildersetExecutorAcquisitionLatencyMillis(int executorAcquisitionLatencyMillis)

Sets the latency for waiting the executor.

public SchemaMigrationStats.BuildersetFirstSetSchemaLatencyMillis(int firstSetSchemaLatencyMillis)

Sets latency of first SetSchema action in milliseconds.

public SchemaMigrationStats.BuildersetGetSchemaLatencyMillis(int getSchemaLatencyMillis)

Sets latency for the GetSchema action in milliseconds.

public SchemaMigrationStats.BuildersetIsFirstSetSchemaSuccess(boolean isFirstSetSchemaSuccess)

Returns status of the first SetSchema action.

public SchemaMigrationStats.BuildersetMigrationFailureCount(int migrationFailureCount)

Sets number of SetSchemaResponse.MigrationFailure.

public SchemaMigrationStats.BuildersetQueryAndTransformLatencyMillis(int queryAndTransformLatencyMillis)

Sets latency for querying all documents that need to be migrated to new version and transforming documents to new version in milliseconds.

public SchemaMigrationStats.BuildersetSaveDocumentLatencyMillis(int saveDocumentLatencyMillis)

Sets latency for putting migrated document to Icing lib in milliseconds.

public SchemaMigrationStats.BuildersetSecondSetSchemaLatencyMillis(int secondSetSchemaLatencyMillis)

Sets latency of second SetSchema action in milliseconds.

public SchemaMigrationStats.BuildersetStatusCode(int statusCode)

Sets status code for the schema migration action.

public SchemaMigrationStats.BuildersetTotalLatencyMillis(int totalLatencyMillis)

Sets total latency for the schema migration action in milliseconds.

public SchemaMigrationStats.BuildersetTotalNeedMigratedDocumentCount(int migratedDocumentCount)

Sets number of document that need to be migrated to another version.

public SchemaMigrationStats.BuildersetTotalSuccessMigratedDocumentCount(int totalSuccessMigratedDocumentCount)

Sets total document count of successfully migrated and saved in Icing.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String packageName, java.lang.String database)

Creates a SchemaMigrationStats.Builder.

public Builder(SchemaMigrationStats stats)

Creates a SchemaMigrationStats.Builder from a given SchemaMigrationStats.

The returned builder is a deep copy whose data is separate from this SchemaMigrationStats.

Methods

public SchemaMigrationStats.Builder setStatusCode(int statusCode)

Sets status code for the schema migration action.

public SchemaMigrationStats.Builder setExecutorAcquisitionLatencyMillis(int executorAcquisitionLatencyMillis)

Sets the latency for waiting the executor.

public SchemaMigrationStats.Builder setTotalLatencyMillis(int totalLatencyMillis)

Sets total latency for the schema migration action in milliseconds.

public SchemaMigrationStats.Builder setGetSchemaLatencyMillis(int getSchemaLatencyMillis)

Sets latency for the GetSchema action in milliseconds.

public SchemaMigrationStats.Builder setQueryAndTransformLatencyMillis(int queryAndTransformLatencyMillis)

Sets latency for querying all documents that need to be migrated to new version and transforming documents to new version in milliseconds.

public SchemaMigrationStats.Builder setFirstSetSchemaLatencyMillis(int firstSetSchemaLatencyMillis)

Sets latency of first SetSchema action in milliseconds.

public SchemaMigrationStats.Builder setIsFirstSetSchemaSuccess(boolean isFirstSetSchemaSuccess)

Returns status of the first SetSchema action.

public SchemaMigrationStats.Builder setSecondSetSchemaLatencyMillis(int secondSetSchemaLatencyMillis)

Sets latency of second SetSchema action in milliseconds.

public SchemaMigrationStats.Builder setSaveDocumentLatencyMillis(int saveDocumentLatencyMillis)

Sets latency for putting migrated document to Icing lib in milliseconds.

public SchemaMigrationStats.Builder setTotalNeedMigratedDocumentCount(int migratedDocumentCount)

Sets number of document that need to be migrated to another version.

public SchemaMigrationStats.Builder setTotalSuccessMigratedDocumentCount(int totalSuccessMigratedDocumentCount)

Sets total document count of successfully migrated and saved in Icing.

public SchemaMigrationStats.Builder setMigrationFailureCount(int migrationFailureCount)

Sets number of SetSchemaResponse.MigrationFailure.

public SchemaMigrationStats build()

Builds a new SchemaMigrationStats from the SchemaMigrationStats.Builder.