public class

SetSchemaStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.localstorage.stats.SetSchemaStats.Builder

Overview

Builder for SetSchemaStats.

Summary

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

Constructor for the SetSchemaStats.Builder.

Methods
public SetSchemaStatsbuild()

Builds a new SetSchemaStats from the SetSchemaStats.Builder.

public SetSchemaStats.BuildersetBackwardsIncompatibleTypeChangeCount(int backwardsIncompatibleTypeChangeCount)

Sets number of backwards-incompatible type changes.

public SetSchemaStats.BuildersetCompatibleTypeChangeCount(int compatibleTypeChangeCount)

Sets number of compatible type changes.

public SetSchemaStats.BuildersetDeletedTypeCount(int deletedTypeCount)

Sets number of deleted types.

public SetSchemaStats.BuildersetIndexIncompatibleTypeChangeCount(int indexIncompatibleTypeChangeCount)

Sets number of index-incompatible type changes.

public SetSchemaStats.BuildersetNewTypeCount(int newTypeCount)

Sets number of new types.

public SetSchemaStats.BuildersetSchemaMigrationStats(SchemaMigrationStats schemaMigrationStats)

Sets the status of schema migration.

public SetSchemaStats.BuildersetStatusCode(int statusCode)

Sets the status of the SetSchema action.

public SetSchemaStats.BuildersetTotalLatencyMillis(int totalLatencyMillis)

Sets total latency for the SetSchema action in milliseconds.

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)

Constructor for the SetSchemaStats.Builder.

Methods

public SetSchemaStats.Builder setStatusCode(int statusCode)

Sets the status of the SetSchema action.

public SetSchemaStats.Builder setSchemaMigrationStats(SchemaMigrationStats schemaMigrationStats)

Sets the status of schema migration.

public SetSchemaStats.Builder setTotalLatencyMillis(int totalLatencyMillis)

Sets total latency for the SetSchema action in milliseconds.

public SetSchemaStats.Builder setNewTypeCount(int newTypeCount)

Sets number of new types.

public SetSchemaStats.Builder setDeletedTypeCount(int deletedTypeCount)

Sets number of deleted types.

public SetSchemaStats.Builder setCompatibleTypeChangeCount(int compatibleTypeChangeCount)

Sets number of compatible type changes.

public SetSchemaStats.Builder setIndexIncompatibleTypeChangeCount(int indexIncompatibleTypeChangeCount)

Sets number of index-incompatible type changes.

public SetSchemaStats.Builder setBackwardsIncompatibleTypeChangeCount(int backwardsIncompatibleTypeChangeCount)

Sets number of backwards-incompatible type changes.

public SetSchemaStats build()

Builds a new SetSchemaStats from the SetSchemaStats.Builder.